Daniel Marjamaki
89ec723468
Refactor MacroInfo so range for loops can be used to iterate its tokens.
...
Differential Revision: http://reviews.llvm.org/D9079
llvm-svn: 236976
2015-05-11 08:26:25 +00:00
John Thompson
fcf3f47d7a
Fixed infinite recursion bug.
...
llvm-svn: 236624
2015-05-06 18:39:15 +00:00
Richard Smith
33de8566f0
Update to match clang r236404.
...
llvm-svn: 236405
2015-05-04 03:15:55 +00:00
Alexander Kornienko
87638f6345
Use 'override/final' instead of 'virtual' for overridden methods
...
Summary:
The patch is generated using clang-tidy misc-use-override check.
This command was used:
tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py \
-checks='-*,misc-use-override' -header-filter='llvm|clang' -j=32 -fix
svn diff | clang-format-diff -i
Reviewers: dblaikie
Reviewed By: dblaikie
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D8927
llvm-svn: 234681
2015-04-11 07:59:33 +00:00
Benjamin Kramer
e71037123b
Make helpers static. clang-tools edition.
...
Also purge dead code found by it. NFC.
llvm-svn: 232948
2015-03-23 12:49:15 +00:00
John Thompson
b70ecf6eef
Fixed canonical path function.
...
llvm-svn: 230665
2015-02-26 19:31:10 +00:00
John Thompson
b87fd7db7c
Temporary hack to avoid false errors. Real fix comming.
...
llvm-svn: 229690
2015-02-18 16:12:26 +00:00
John Thompson
9ea81b0041
Fix broken logic for include in block check.
...
llvm-svn: 229187
2015-02-13 23:32:08 +00:00
John Thompson
f1828ef3c6
Fixed incorrect header inclusion tracking resulting in false error reports.
...
llvm-svn: 228929
2015-02-12 15:26:17 +00:00
John Thompson
ecd3b04cd7
Added -block-check-header-list-only option. This is a work-around for private includes that purposefully get included inside blocks.
...
llvm-svn: 228846
2015-02-11 16:58:36 +00:00
John Thompson
9724431c77
Centralize canonical path conversion.
...
llvm-svn: 228845
2015-02-11 16:45:50 +00:00
David Blaikie
34318816e8
Update for LLVM API change to make Small(Ptr)Set::insert return pair<iterator, bool> as per the C++ standard's associative container concept.
...
llvm-svn: 222336
2014-11-19 07:49:54 +00:00
Craig Topper
775862a277
Unique_ptrify PPCallbacks ownership. Goes with clang r217474.
...
llvm-svn: 217475
2014-09-10 05:07:57 +00:00
David Blaikie
92fc741998
Unbreak the build after r211244.
...
These operator overloads were unneeded (once the const correctness in
PooledStringPtr was corrected) and inefficient (since the strings are
pooled the pointers can just be compared for equality instead of doing
strcmp).
llvm-svn: 211245
2014-06-19 00:43:19 +00:00
Craig Topper
f61be9c971
[C++11] Use 'nullptr'.
...
llvm-svn: 210447
2014-06-09 02:03:06 +00:00
Chandler Carruth
85e6e87171
Run llvm/utils/sort_includes.py over the Clang tools code. This doesn't
...
always produce as pretty of results as it does in LLVM and Clang, but
I don't mind and the value of having a single canonical ordering is very
high IMO.
Let me know if you spot really serious problems here.
llvm-svn: 198703
2014-01-07 20:05:01 +00:00
John Thompson
87f9fef5a5
Changed ConditionValue argument to PPCallbacks If and Elif callbacks to be a 3-state enum.
...
llvm-svn: 196648
2013-12-07 08:41:15 +00:00
John Thompson
a2b66875d3
Added colon to make proper error message prefix.
...
llvm-svn: 191092
2013-09-20 14:44:20 +00:00
John Thompson
740839260b
Check for #include in extern and namespace blocks.
...
llvm-svn: 190950
2013-09-18 18:19:43 +00:00
John Thompson
cc2e291dac
Ran clang-format for a base-line.
...
llvm-svn: 189836
2013-09-03 18:44:11 +00:00
John Thompson
c8d710cc82
Avoid errors on header guards using #if defined(NAME).
...
llvm-svn: 188306
2013-08-13 18:11:36 +00:00
John Thompson
91555bde88
Fix false error message for function-style macro instance used as arguments in other function-style macros instances, and add test for it.
...
llvm-svn: 188036
2013-08-09 00:22:20 +00:00
John Thompson
4ed963a0ba
Fixed incorrect header guard/nested header mechanism.
...
llvm-svn: 187898
2013-08-07 18:49:47 +00:00
John Thompson
48df096c3f
Fixed uninitialized member, plus recommit of 187736.
...
llvm-svn: 187757
2013-08-05 23:55:14 +00:00
Arnold Schwaighofer
30448e607e
Reverting r187736. It broke some public bots:
...
http://lab.llvm.org:8011/builders/clang-native-arm-cortex-a9/builds/10248
http://bb.pgr.jp/builders/cmake-clang-i686-mingw32/builds/3327
llvm-svn: 187746
2013-08-05 22:03:41 +00:00
John Thompson
ea8e668516
Fixed incorrect include file exit detection. Added work-around to avoid error on header guard in nested include. Fixed a couple of coding standard issues on variable names.
...
llvm-svn: 187736
2013-08-05 19:15:50 +00:00
John Thompson
7c6e79f395
Fixed comment issues (non-ASCII chars, typos) per review, expanded some comments.
...
llvm-svn: 187370
2013-07-29 19:07:00 +00:00
Benjamin Kramer
f25768103a
modularize: Remove default case from fully covered switch.
...
llvm-svn: 187306
2013-07-27 15:57:46 +00:00
John Thompson
94faa4d0d4
Fixed case change that caused the test failure. Incorporarated Sean's review changes, consisting only of renaming and comment changes.
...
llvm-svn: 187277
2013-07-26 23:56:42 +00:00
Rafael Espindola
17b15cfbe3
Revert "Added new feature for checking macro and preprocessor conditional consistency."
...
This reverts commit r187228. It broke some bots:
http://bb.pgr.jp/builders/cmake-clang-i686-mingw32
llvm-svn: 187235
2013-07-26 19:23:33 +00:00
John Thompson
1e0101461e
Added new feature for checking macro and preprocessor conditional consistency.
...
llvm-svn: 187228
2013-07-26 18:16:22 +00:00