summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/DependencyFile.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update for LLVM API changeDavid Blaikie2014-11-191-2/+2
| | | | llvm-svn: 222303
* Frontend: Don't include stdin in the dependency list for an object fileDavid Majnemer2014-10-271-2/+11
| | | | | | | | | GCC doesn't do this and it semes weird to include a file that we can't open. This fixes PR21362. llvm-svn: 220726
* Unique_ptrify PPCallbacks ownership.Craig Topper2014-09-101-2/+3
| | | | | | Unique_ptr creation stil needs to be moved earlier at some of the call sites. llvm-svn: 217474
* Update for llvm api change.Rafael Espindola2014-08-251-5/+5
| | | | llvm-svn: 216397
* unique_ptr-ify ASTReaderListener in the ASTReaderDavid Blaikie2014-08-101-2/+2
| | | | llvm-svn: 215317
* Consider module depedencies when checking a preamble in libclangBen Langmuir2014-06-301-0/+99
| | | | | | | | | | | | | Add module dependencies (header files, module map files) to the list of files to check when deciding whether to rebuild a preamble. That fixes using preambles with module imports so long as they are in non-overridden files. My intent is to use to unify the existing dependency collectors to the new “DependencyCollectory” interface from this commit, starting with the DependencyFileGenerator. llvm-svn: 212060
* [C++11] Use 'nullptr'. Frontend edition.Craig Topper2014-05-221-2/+2
| | | | llvm-svn: 209389
* [Modules] Emit the module file paths as dependencies of the PCH when we are ↵Argyrios Kyrtzidis2014-03-141-1/+9
| | | | | | | | | | | building one. This is because the PCH is tied to the module files, if one of the module files changes or gets removed the build system should re-build the PCH file. rdar://16321245 llvm-svn: 203885
* [Modules] Make sure that the synthesized file "__inferred_module.map" ↵Argyrios Kyrtzidis2014-03-141-2/+6
| | | | | | | | doesn't show up as dependency of a module file. Follow-up for rdar://15459210 llvm-svn: 203882
* [C++11] Add 'override' keyword to virtual methods that override their base ↵Craig Topper2014-03-131-17/+13
| | | | | | class. llvm-svn: 203758
* Add dependencies from imported modules with -MDBen Langmuir2014-03-071-25/+59
| | | | | | | | Add module dependencies to the dependency files created by -MD/-MMD/etc. by attaching an ASTReaderListener that will call into the dependency file generator when a module input file is seen in the serialized AST. llvm-svn: 203208
* Update for llvm api change.Rafael Espindola2014-02-241-1/+1
| | | | llvm-svn: 202053
* Don't assume that F_None is the default. It is about to change.Rafael Espindola2014-02-241-1/+1
| | | | llvm-svn: 202040
* Use the simpler version of llvm::sys::fs::remove when possible.Rafael Espindola2014-01-101-2/+1
| | | | llvm-svn: 198957
* Modernize some low-hanging PathV1 uses.Benjamin Kramer2013-06-131-2/+3
| | | | llvm-svn: 183903
* Include PathV1.h in files that use it.Rafael Espindola2013-06-111-0/+1
| | | | | | This is preparation for replacing Path.h with PathV2.h. llvm-svn: 183781
* Escape # and $ in dependency files.Benjamin Kramer2013-04-021-3/+5
| | | | | | Fixes PR15642. llvm-svn: 178540
* For PPCallbacks::InclusionDirective() add a parameter for the module, wheneverArgyrios Kyrtzidis2012-09-291-2/+4
| | | | | | | an inclusion directive was automatically turned into a module import, and PPCallbacks::moduleImport() for an explicit module import. llvm-svn: 164874
* Per discussion in ↵Argyrios Kyrtzidis2012-09-271-2/+2
| | | | | | | | | | http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120917/064551.html have PPCallbacks::InclusionDirective pass the character range for the filename quotes or brackets. rdar://11113134 & http://llvm.org/PR13880 llvm-svn: 164743
* Delete the depfile if we could not open a header file. We cannotPeter Collingbourne2011-11-211-28/+36
| | | | | | generate any reasonable depfile if a header is missing. llvm-svn: 145019
* For the FileChanged Preprocessor callback, when exiting a file, pass its FileID.Argyrios Kyrtzidis2011-10-111-2/+4
| | | | llvm-svn: 141681
* Change err_pp_file_not_found back to an Error; when it's a Warning, we ↵Eli Friedman2011-08-301-8/+2
| | | | | | | | suppress it in system headers. And it is not a good idea to suppress it in system headers. (This was originally changed in r134996 to implement -MG.) Fixes <rdar://10041960>. And also brings down the number of warnings without a flag by one :) llvm-svn: 138842
* Mechanically rename SourceManager::getInstantiationLoc andChandler Carruth2011-07-251-1/+1
| | | | | | | | FullSourceLoc::getInstantiationLoc to ...::getExpansionLoc. This is part of the API and documentation update from 'instantiation' as the term for macros to 'expansion'. llvm-svn: 135914
* remove unneeded llvm:: namespace qualifiers on some core types now that ↵Chris Lattner2011-07-231-13/+13
| | | | | | | | LLVM.h imports them into the clang namespace. llvm-svn: 135852
* Implement -MG. Fixes PR9613Peter Collingbourne2011-07-121-1/+38
| | | | llvm-svn: 134996
* Fix up dependency file name printing to more closely match that of gcc, ↵Eli Friedman2011-07-081-5/+11
| | | | | | | | including fixing a nasty recent regression that could make us print "/foo.h" with a command-line including "-I ./". rdar://problem/9734352 llvm-svn: 134728
* Fixes a crash when generating dependency file stuffFariborz Jahanian2011-04-151-1/+1
| | | | | | and output file is not writable. // rdar://9286457. llvm-svn: 129587
* fix clang -MM output to escape spaces in filenames. This seems to beChris Lattner2011-02-171-7/+18
| | | | | | the only character that GCC escapes. PR9224. llvm-svn: 125707
* It's not necessary to call flush() on a raw_ostream immediately priorDan Gohman2010-07-261-1/+0
| | | | | | to deleting it. llvm-svn: 109441
* PPCallbacks: Add hook for reaching the end of the main file, and fix ↵Daniel Dunbar2010-03-231-4/+5
| | | | | | DependencyFile to not do work in its destructor. llvm-svn: 99257
* Rename to addPPCallbacks since we're effectively adding a callback and maybe ↵Kovarththanan Rajaratnam2010-03-071-1/+1
| | | | | | chaining it to an existing one llvm-svn: 97913
* Don't assert if PP already contains a valid PP callback. The PP can handle ↵Kovarththanan Rajaratnam2010-03-071-1/+0
| | | | | | multiple callbacks (using PPChainedCallbacks) llvm-svn: 97910
* Remove VISIBILITY_HIDDEN from anonymous namespaces in libFrontend.Benjamin Kramer2009-11-281-2/+1
| | | | llvm-svn: 90033
* Sink AttachDependencyFileGen into CreatePreprocessor.Daniel Dunbar2009-11-111-5/+5
| | | | llvm-svn: 86881
* Add DependencyOutputOptions to wrap -M... options, and propogate toDaniel Dunbar2009-11-111-19/+25
| | | | | | CompilerInvocation and clang-cc. llvm-svn: 86880
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-8/+8
| | | | llvm-svn: 81346
* Clean up some unnecessary includes.Eli Friedman2009-05-191-2/+0
| | | | llvm-svn: 72101
* Move clang-cc.h to lib/Frontend/Utils.h, and move the associated .cpp Eli Friedman2009-05-191-0/+171
files to lib/Frontend. llvm-svn: 72099
OpenPOWER on IntegriCloud