summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/pp-trace/PPCallbacksTracker.cpp
Commit message (Collapse)AuthorAgeFilesLines
* NFC: Fix trivial typos in commentsKazuaki Ishizaki2020-01-041-3/+3
|
* Use FileEntryRef for PPCallbacks::FileSkippedAlex Lorenz2019-08-271-2/+2
| | | | | | | | This fixes the issue where a filename dependendency was missing if the file that was skipped was included through a symlink in an earlier run, if the file manager was reused between runs. llvm-svn: 369998
* Remove \brief commands from doxygen comments.Dmitri Gribenko2019-08-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Summary: We've been running doxygen with the autobrief option for a couple of years now. This makes the \brief markers into our comments redundant. Since they are a visual distraction and we don't want to encourage more \brief markers in new code either, this patch removes them all. Patch produced by for i in $(git grep -l '\\brief'); do perl -pi -e 's/\\brief //g' $i & done [This is analogous to LLVM r331272 and CFE r331834] Subscribers: srhines, nemanjai, javed.absar, kbarton, MaskRay, jkorous, arphaman, jfb, kadircet, jsji, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D66578 llvm-svn: 369643
* [pp-trace] Delete redundant clang::Fangrui Song2019-03-241-100/+83
| | | | | | And clarify command line options llvm-svn: 356851
* [pp-trace] Wrap code in clang::pp_traceFangrui Song2019-03-241-2/+6
| | | | llvm-svn: 356850
* [pp-trace] Delete -ignore and add a new option -callbacksFangrui Song2019-03-181-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | Summary: -ignore specifies a list of PP callbacks to ignore. It cannot express a whitelist, which may be more useful than a blacklist. Add a new option -callbacks to replace it. -ignore= (default) => -callbacks='*' (default) -ignore=FileChanged,FileSkipped => -callbacks='*,-FileChanged,-FileSkipped' -callbacks='Macro*' : print only MacroDefined,MacroExpands,MacroUndefined,... Reviewers: juliehockett, aaron.ballman, alexfh, ioeric Reviewed By: aaron.ballman Subscribers: nemanjai, kbarton, jsji, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D59296 llvm-svn: 356366
* Add PragmaHandler for MSVC pragma execution_character_setReid Kleckner2019-03-141-0/+16
| | | | | | | | | | | | __pragma(execution_character_set(push, "UTF-8")) is used in TraceLoggingProvider.h. This commit implements a no-op handler for compatability, similar to how the flag -fexec_charset is handled. Patch by Matt Gardner! Differential Revision: https://reviews.llvm.org/D58530 llvm-svn: 356185
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* Reland "[tools] Updating PPCallbacks::InclusionDirective calls"Julie Hockett2018-05-101-1/+1
| | | | | | | | | 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-1/+1
| | | | | | This reverts commit r331905, since it's dependent on reverted r331905. llvm-svn: 331931
* [tools] Updating PPCallbacks::InclusionDirective callsJulie Hockett2018-05-091-1/+1
| | | | | | | | | [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
* [pp-trace] Update skipped source ranges in testsVedant Kumar2017-09-111-2/+3
| | | | | | Depends on D36642 llvm-svn: 312948
* Update Append Argument to more efficiently traverse tokensErich Keane2017-06-151-10/+9
| | | | | | | | | | | | | | | This function was previously making (correct) assumptions without complete knowledge of MacroArgs guarantees for Arguments. After going through Macro Args a bunch, I'd corrected the getNumArguments (and changed its name), however didn't realize this was depending on the behavior. This patch has version that depends on the corrected getNumMacroArguments's behavior, with the rest checked against my knowledge of the MacroArgs' token list. Commiting no-wait since the test is broken. llvm-svn: 305434
* Update callbacks tracker to match change in 305425Erich Keane2017-06-141-1/+1
| | | | llvm-svn: 305426
* Fix API breaksDavid Blaikie2017-04-261-1/+2
| | | | llvm-svn: 301468
* Fix Clang-tidy modernize-deprecated-headers warnings; other minor fixes.Eugene Zelenko2016-03-171-5/+3
| | | | | | Differential revision: http://reviews.llvm.org/D18231 llvm-svn: 263726
* Revert "Apply modernize-use-default to clang-tools-extra."David Blaikie2015-10-201-1/+1
| | | | | | | | | 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-1/+1
| | | | | | | | | | | | 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
* Make a bunch of static arrays const.Craig Topper2015-10-181-16/+19
| | | | llvm-svn: 250641
* Revert r241330. It compiled with Visual C++ 2013 and gcc 4.9.1 (mingw) but ↵Yaron Keren2015-07-031-1/+1
| | | | | | now fails the bots. llvm-svn: 241335
* Replace some const std::string & with llvm::StringRef or std::stringYaron Keren2015-07-031-1/+1
| | | | | | | | and std::move to avoid implicit std::string construction. Patch by Eugene Kosov. llvm-svn: 241330
* Update for clang API change.Rafael Espindola2015-06-011-5/+4
| | | | | | Patch by Косов Евгений. llvm-svn: 238775
* Fix misleading parameter name for PPCallbacks::FileSkipped.Nikola Smiljanic2015-05-121-2/+2
| | | | | | Patch thanks to Vladimir Voskresensky. llvm-svn: 237116
* Update to match clang r236404.Richard Smith2015-05-041-10/+29
| | | | llvm-svn: 236405
* Make helpers static. clang-tools edition.Benjamin Kramer2015-03-231-4/+2
| | | | | | Also purge dead code found by it. NFC. llvm-svn: 232948
* Track clang changes from r210758Alp Toker2014-06-121-1/+1
| | | | llvm-svn: 210759
* Prospective build fix following clang r210518Alp Toker2014-06-101-1/+1
| | | | llvm-svn: 210521
* [C++11] Use 'nullptr'.Craig Topper2014-06-091-2/+2
| | | | llvm-svn: 210447
* Add new 'remark' diagnostic typeTobias Grosser2014-02-281-3/+3
| | | | llvm-svn: 202477
* Changed ConditionValue argument to PPCallbacks If and Elif callbacks to be a ↵John Thompson2013-12-071-4/+10
| | | | | | 3-state enum. llvm-svn: 196648
* [extra] pp-trace - Fix for PragmaWarning output, adding tests for the pragma ↵John Thompson2013-11-141-0/+1
| | | | | | callbacks. llvm-svn: 194636
* Fixed moduleImport and ident callbacks. Fixed modules test. Added ident ↵John Thompson2013-11-121-2/+2
| | | | | | callback test. A better test for moduleExport is coming. llvm-svn: 194447
* [extra] pp-trace - Fixed problems found while writing docs.John Thompson2013-11-051-2/+2
| | | | llvm-svn: 194079
* pp-trace - preprocessor tacing and PPCallbacks testing toolJohn Thompson2013-10-311-0/+629
llvm-svn: 193743
OpenPOWER on IntegriCloud