diff options
author | Julian Orth <ju.orth@gmail.com> | 2014-03-05 21:06:58 +0100 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-27 14:03:35 -0300 |
commit | cfa070edc5fd62c33a3703fa0873087b6fc8917d (patch) | |
tree | 9d3aba01d5a7b9de361df1c937eda2b6500df975 /clint.py | |
parent | 7326894a06376fafa4b93f05a80f2cf025b6e98f (diff) | |
download | rneovim-cfa070edc5fd62c33a3703fa0873087b6fc8917d.tar.gz rneovim-cfa070edc5fd62c33a3703fa0873087b6fc8917d.tar.bz2 rneovim-cfa070edc5fd62c33a3703fa0873087b6fc8917d.zip |
remove CheckMakePairUsesDeduction
Irrelevant
Diffstat (limited to 'clint.py')
-rwxr-xr-x | clint.py | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -4476,30 +4476,6 @@ def CheckForIncludeWhatYouUse(filename, clean_lines, include_state, error, 'Add #include ' + required_header_unstripped + ' for ' + template) -_RE_PATTERN_EXPLICIT_MAKEPAIR = re.compile(r'\bmake_pair\s*<') - - -def CheckMakePairUsesDeduction(filename, clean_lines, linenum, error): - """Check that make_pair's template arguments are deduced. - - G++ 4.6 in C++0x mode fails badly if make_pair's template arguments are - specified explicitly, and such use isn't intended in any case. - - Args: - filename: The name of the current file. - clean_lines: A CleansedLines instance containing the file. - linenum: The number of the line to check. - error: The function to call with any errors found. - """ - line = clean_lines.elided[linenum] - match = _RE_PATTERN_EXPLICIT_MAKEPAIR.search(line) - if match: - error(filename, linenum, 'build/explicit_make_pair', - 4, # 4 = high confidence - 'For C++11-compatibility, omit template arguments from make_pair' - ' OR use pair directly OR if appropriate, construct a pair directly') - - def ProcessLine(filename, file_extension, clean_lines, line, include_state, function_state, nesting_state, error, extra_check_functions=[]): |