summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/modularize/PreprocessorTracker.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Reland "[tools] Updating PPCallbacks::InclusionDirective calls"Julie Hockett2018-05-101-2/+3
| | | | | | | | | This commit relands r331905. r331904 added SrcMgr::CharacteristicKind to the InclusionDirective callback, this revision updates instances of it in clang-tools-extra. llvm-svn: 332023
* Revert "[tools] Updating PPCallbacks::InclusionDirective calls"Julie Hockett2018-05-091-3/+2
| | | | | | This reverts commit r331905, since it's dependent on reverted r331905. llvm-svn: 331931
* [tools] Updating PPCallbacks::InclusionDirective callsJulie Hockett2018-05-091-2/+3
| | | | | | | | | [revision] added SrcMgr::CharacteristicKind to the InclusionDirective callback, this revision updates instances of it in clang-tools-extra. Differential Revision: https://reviews.llvm.org/D46615 llvm-svn: 331905
* [NFC] Sync function call with changes to interface made in r314593.Faisal Vali2017-09-301-1/+1
| | | | llvm-svn: 314595
* [NFC] Update function call names as changed in MacroInfo that should refer ↵Faisal Vali2017-07-171-1/+1
| | | | | | | | | | to Parameters (as opposed to Arguments). This syncs them up with clang commit r308190 Thanks! llvm-svn: 308191
* modernize-use-auto NFC fixesPiotr Padlewski2016-12-141-43/+27
| | | | llvm-svn: 289656
* Fix build problem by lower SmallSet<N> to a reasonable valueMatthias Braun2016-02-011-1/+1
| | | | llvm-svn: 259424
* Revert "Apply modernize-use-default to clang-tools-extra."David Blaikie2015-10-201-3/+3
| | | | | | | | | Breaks the build in GCC 4.7.2 (see http://lab.llvm.org:8011/builders/perf-x86_64-penryn-O3 for example) This reverts commit r250824. llvm-svn: 250862
* Apply modernize-use-default to clang-tools-extra.Angel Garcia Gomez2015-10-201-3/+3
| | | | | | | | | | | | Summary: Replace empty bodies of default constructors and destructors with '= default'. Reviewers: klimek Subscribers: alexfh, cfe-commits Differential Revision: http://reviews.llvm.org/D13889 llvm-svn: 250824
* Refactor MacroInfo so range for loops can be used to iterate its tokens.Daniel Marjamaki2015-05-111-4/+3
| | | | | | Differential Revision: http://reviews.llvm.org/D9079 llvm-svn: 236976
* Fixed infinite recursion bug.John Thompson2015-05-061-1/+1
| | | | llvm-svn: 236624
* Update to match clang r236404.Richard Smith2015-05-041-10/+10
| | | | llvm-svn: 236405
* Use 'override/final' instead of 'virtual' for overridden methodsAlexander Kornienko2015-04-111-16/+19
| | | | | | | | | | | | | | | | | | | | | | 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
* Make helpers static. clang-tools edition.Benjamin Kramer2015-03-231-86/+19
| | | | | | Also purge dead code found by it. NFC. llvm-svn: 232948
* Fixed canonical path function.John Thompson2015-02-261-1/+2
| | | | llvm-svn: 230665
* Temporary hack to avoid false errors. Real fix comming.John Thompson2015-02-181-0/+3
| | | | llvm-svn: 229690
* Fix broken logic for include in block check.John Thompson2015-02-131-1/+1
| | | | llvm-svn: 229187
* Fixed incorrect header inclusion tracking resulting in false error reports.John Thompson2015-02-121-1/+4
| | | | llvm-svn: 228929
* Added -block-check-header-list-only option. This is a work-around for ↵John Thompson2015-02-111-5/+37
| | | | | | private includes that purposefully get included inside blocks. llvm-svn: 228846
* Centralize canonical path conversion.John Thompson2015-02-111-4/+9
| | | | llvm-svn: 228845
* Update for LLVM API change to make Small(Ptr)Set::insert return ↵David Blaikie2014-11-191-1/+1
| | | | | | pair<iterator, bool> as per the C++ standard's associative container concept. llvm-svn: 222336
* Unique_ptrify PPCallbacks ownership. Goes with clang r217474.Craig Topper2014-09-101-1/+2
| | | | llvm-svn: 217475
* Unbreak the build after r211244.David Blaikie2014-06-191-13/+0
| | | | | | | | | 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
* [C++11] Use 'nullptr'.Craig Topper2014-06-091-19/+19
| | | | llvm-svn: 210447
* Run llvm/utils/sort_includes.py over the Clang tools code. This doesn'tChandler Carruth2014-01-071-3/+3
| | | | | | | | | | 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
* Changed ConditionValue argument to PPCallbacks If and Elif callbacks to be a ↵John Thompson2013-12-071-13/+22
| | | | | | 3-state enum. llvm-svn: 196648
* Added colon to make proper error message prefix.John Thompson2013-09-201-2/+2
| | | | llvm-svn: 191092
* Check for #include in extern and namespace blocks.John Thompson2013-09-181-3/+149
| | | | llvm-svn: 190950
* Ran clang-format for a base-line.John Thompson2013-09-031-11/+8
| | | | llvm-svn: 189836
* Avoid errors on header guards using #if defined(NAME).John Thompson2013-08-131-0/+2
| | | | llvm-svn: 188306
* Fix false error message for function-style macro instance used as arguments ↵John Thompson2013-08-091-0/+9
| | | | | | in other function-style macros instances, and add test for it. llvm-svn: 188036
* Fixed incorrect header guard/nested header mechanism.John Thompson2013-08-071-5/+7
| | | | llvm-svn: 187898
* Fixed uninitialized member, plus recommit of 187736.John Thompson2013-08-051-12/+27
| | | | llvm-svn: 187757
* Reverting r187736. It broke some public bots:Arnold Schwaighofer2013-08-051-25/+11
| | | | | | | 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
* Fixed incorrect include file exit detection. Added work-around to avoid ↵John Thompson2013-08-051-11/+25
| | | | | | error on header guard in nested include. Fixed a couple of coding standard issues on variable names. llvm-svn: 187736
* Fixed comment issues (non-ASCII chars, typos) per review, expanded some ↵John Thompson2013-07-291-33/+78
| | | | | | comments. llvm-svn: 187370
* modularize: Remove default case from fully covered switch.Benjamin Kramer2013-07-271-4/+1
| | | | llvm-svn: 187306
* Fixed case change that caused the test failure. Incorporarated Sean's ↵John Thompson2013-07-261-0/+1220
| | | | | | review changes, consisting only of renaming and comment changes. llvm-svn: 187277
* Revert "Added new feature for checking macro and preprocessor conditional ↵Rafael Espindola2013-07-261-1036/+0
| | | | | | | | | consistency." This reverts commit r187228. It broke some bots: http://bb.pgr.jp/builders/cmake-clang-i686-mingw32 llvm-svn: 187235
* Added new feature for checking macro and preprocessor conditional consistency.John Thompson2013-07-261-0/+1036
llvm-svn: 187228
OpenPOWER on IntegriCloud