aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/DependencyFile.cpp
AgeCommit message (Collapse)AuthorFilesLines
2012-09-29For PPCallbacks::InclusionDirective() add a parameter for the module, wheneverArgyrios Kyrtzidis1-2/+4
an inclusion directive was automatically turned into a module import, and PPCallbacks::moduleImport() for an explicit module import. llvm-svn: 164874
2012-09-27Per discussion in ↵Argyrios Kyrtzidis1-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
2011-11-21Delete the depfile if we could not open a header file. We cannotPeter Collingbourne1-28/+36
generate any reasonable depfile if a header is missing. llvm-svn: 145019
2011-10-11For the FileChanged Preprocessor callback, when exiting a file, pass its FileID.Argyrios Kyrtzidis1-2/+4
llvm-svn: 141681
2011-08-30Change err_pp_file_not_found back to an Error; when it's a Warning, we ↵Eli Friedman1-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
2011-07-25Mechanically rename SourceManager::getInstantiationLoc andChandler Carruth1-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
2011-07-23remove unneeded llvm:: namespace qualifiers on some core types now that ↵Chris Lattner1-13/+13
LLVM.h imports them into the clang namespace. llvm-svn: 135852
2011-07-12Implement -MG. Fixes PR9613Peter Collingbourne1-1/+38
llvm-svn: 134996
2011-07-08Fix up dependency file name printing to more closely match that of gcc, ↵Eli Friedman1-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
2011-04-15Fixes a crash when generating dependency file stuffFariborz Jahanian1-1/+1
and output file is not writable. // rdar://9286457. llvm-svn: 129587
2011-02-17fix clang -MM output to escape spaces in filenames. This seems to beChris Lattner1-7/+18
the only character that GCC escapes. PR9224. llvm-svn: 125707
2010-07-26It's not necessary to call flush() on a raw_ostream immediately priorDan Gohman1-1/+0
to deleting it. llvm-svn: 109441
2010-03-23PPCallbacks: Add hook for reaching the end of the main file, and fix ↵Daniel Dunbar1-4/+5
DependencyFile to not do work in its destructor. llvm-svn: 99257
2010-03-07Rename to addPPCallbacks since we're effectively adding a callback and maybe ↵Kovarththanan Rajaratnam1-1/+1
chaining it to an existing one llvm-svn: 97913
2010-03-07Don't assert if PP already contains a valid PP callback. The PP can handle ↵Kovarththanan Rajaratnam1-1/+0
multiple callbacks (using PPChainedCallbacks) llvm-svn: 97910
2009-11-28Remove VISIBILITY_HIDDEN from anonymous namespaces in libFrontend.Benjamin Kramer1-2/+1
llvm-svn: 90033
2009-11-11Sink AttachDependencyFileGen into CreatePreprocessor.Daniel Dunbar1-5/+5
llvm-svn: 86881
2009-11-11Add DependencyOutputOptions to wrap -M... options, and propogate toDaniel Dunbar1-19/+25
CompilerInvocation and clang-cc. llvm-svn: 86880
2009-09-09Remove tabs, and whitespace cleanups.Mike Stump1-8/+8
llvm-svn: 81346
2009-05-19Clean up some unnecessary includes.Eli Friedman1-2/+0
llvm-svn: 72101
2009-05-19Move clang-cc.h to lib/Frontend/Utils.h, and move the associated .cpp Eli Friedman1-0/+171
files to lib/Frontend. llvm-svn: 72099