aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/HeaderIncludeGen.cpp
AgeCommit message (Collapse)AuthorFilesLines
2015-08-13Add sanitizer blacklists to the rules generated with -M/-MM/-MD/-MMD.Ivan Krasin1-23/+40
Summary: Clang sanitizers, such as AddressSanitizer, ThreadSanitizer, MemorySanitizer, Control Flow Integrity and others, use blacklists to specify which types / functions should not be instrumented to avoid false positives or suppress known failures. This change adds the blacklist filenames to the list of dependencies of the rules, generated with -M/-MM/-MD/-MMD. This lets CMake/Ninja recognize that certain C/C++/ObjC files need to be recompiled (if a blacklist is updated). Reviewers: pcc Subscribers: rsmith, honggyu.kim, pcc, cfe-commits Differential Revision: http://reviews.llvm.org/D11968 llvm-svn: 244867
2015-06-22Revert r240270 ("Fixed/added namespace ending comments using clang-tidy").Alexander Kornienko1-1/+1
llvm-svn: 240353
2015-06-22Fixed/added namespace ending comments using clang-tidy. NFCAlexander Kornienko1-1/+1
The patch is generated using this command: $ tools/extra/clang-tidy/tool/run-clang-tidy.py -fix \ -checks=-*,llvm-namespace-comment -header-filter='llvm/.*|clang/.*' \ work/llvm/tools/clang To reduce churn, not touching namespaces spanning less than 10 lines. llvm-svn: 240270
2015-04-11Use 'override/final' instead of 'virtual' for overridden methodsAlexander Kornienko1-1/+1
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 Reviewers: dblaikie Reviewed By: dblaikie Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D8926 llvm-svn: 234678
2014-09-10Unique_ptrify PPCallbacks ownership.Craig Topper1-3/+6
Unique_ptr creation stil needs to be moved earlier at some of the call sites. llvm-svn: 217474
2014-08-25Update for llvm api change.Rafael Espindola1-6/+5
llvm-svn: 216397
2014-07-17clang-cl: Flush stdout after writing the /showIncludes outputEhsan Akhgari1-0/+1
Summary: Before this patch, you could get lines in the output such as: Note: including file: ../../dist/include/js/Tc:/path/to/foo.cpp(1,1) : error(clang): static_assert failed... This patch ensures that the stdout output from showIncludes won't be garbled in the terminal like this, and it also helps applications that use the output to generate dependency information if they happen to capture both stdout and stderr. Test Plan: Tested locally, it's hard to write an automated test for this as the behavior depends on the buffering of the ostreams. Reviewers: nico Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D4559 llvm-svn: 213297
2014-07-06clang-cl: /showIncludes output should go to stdout, not stderr. Fixes PR20217.Nico Weber1-1/+1
llvm-svn: 212383
2014-03-13[C++11] Add 'override' keyword to virtual methods that override their base ↵Craig Topper1-3/+3
class. llvm-svn: 203758
2014-02-24Update for llvm api change.Rafael Espindola1-1/+2
llvm-svn: 202053
2013-08-09clang-cl: Support /showIncludesHans Wennborg1-7/+15
This option prints information about #included files to stderr. Clang could already do it, this patch just teaches the existing code about the /showIncludes style and adds the flag. Differential Revision: http://llvm-reviews.chandlerc.com/D1333 llvm-svn: 188037
2013-07-16Update for llvm API change.Rafael Espindola1-1/+1
llvm-svn: 186448
2012-02-05Basic: import SmallString<> into clang namespaceDylan Noblesmith1-2/+2
(I was going to fix the TODO about DenseMap too, but that would break self-host right now. See PR11922.) llvm-svn: 149799
2012-02-04Move a method from IdentifierTable.h out of line and remove the SmallString ↵Benjamin Kramer1-0/+1
include. Fix all the transitive include users. llvm-svn: 149783
2011-10-11For the FileChanged Preprocessor callback, when exiting a file, pass its FileID.Argyrios Kyrtzidis1-2/+4
llvm-svn: 141681
2011-07-23remove unneeded llvm:: namespace qualifiers on some core types now that ↵Chris Lattner1-4/+4
LLVM.h imports them into the clang namespace. llvm-svn: 135852
2011-04-14Fix -H. It was pretty broken.Sebastian Redl1-5/+9
llvm-svn: 129514
2011-03-21Frontend: Change CC_PRINT_HEADERS to not print header depth markers, these don'tDaniel Dunbar1-7/+13
really make any sense in this environment. llvm-svn: 128014
2011-02-03Frontend: Switch -header-include-file output to use unbuffered raw_ostreams withDaniel Dunbar1-14/+22
the atomic writes option, since the intent is that this option be set for an entire build, which may have any number of compiler instances writing to the same output file. llvm-svn: 124772
2011-02-02Frontend: Add -header-include-file option, for allowing saving header includeDaniel Dunbar1-7/+30
information to a file. llvm-svn: 124750
2011-02-02Frontend: Add support (unused) for showing all "interesting" headers, not justDaniel Dunbar1-21/+16
ones outside the predefines buffer (which is what -H does). llvm-svn: 124749
2011-02-02Frontend: Factor out header include dumping (-H) into its own preprocessorDaniel Dunbar1-0/+87
callbacks class. - Aside from being generally cleaner, this also allows -H to work correctly in modes other than standard preprocessing (e.g., -c, -MM, etc.) llvm-svn: 124723