diff options
author | Mike Stump <mrs@apple.com> | 2009-09-09 15:08:12 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-09-09 15:08:12 +0000 |
commit | 1eb4433ac451dc16f4133a88af2d002ac26c58ef (patch) | |
tree | 07065b80cb7787bb7b9ffcb985196007a57e86f7 /lib/Frontend/DependencyFile.cpp | |
parent | 79d39f92590cf2e91bf81486b02cd1156d13ca54 (diff) |
Remove tabs, and whitespace cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81346 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/DependencyFile.cpp')
-rw-r--r-- | lib/Frontend/DependencyFile.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Frontend/DependencyFile.cpp b/lib/Frontend/DependencyFile.cpp index c8a654cff2..81d1179f28 100644 --- a/lib/Frontend/DependencyFile.cpp +++ b/lib/Frontend/DependencyFile.cpp @@ -40,8 +40,8 @@ private: void OutputDependencyFile(); public: - DependencyFileCallback(const Preprocessor *_PP, - llvm::raw_ostream *_OS, + DependencyFileCallback(const Preprocessor *_PP, + llvm::raw_ostream *_OS, const std::vector<std::string> &_Targets, bool _IncludeSystemHeaders, bool _PhonyTarget) @@ -67,8 +67,8 @@ void clang::AttachDependencyFileGen(Preprocessor *PP, llvm::raw_ostream *OS, bool PhonyTarget) { assert(!Targets.empty() && "Target required for dependency generation"); - DependencyFileCallback *PPDep = - new DependencyFileCallback(PP, OS, Targets, IncludeSystemHeaders, + DependencyFileCallback *PPDep = + new DependencyFileCallback(PP, OS, Targets, IncludeSystemHeaders, PhonyTarget); PP->setPPCallbacks(PPDep); } @@ -91,16 +91,16 @@ void DependencyFileCallback::FileChanged(SourceLocation Loc, SrcMgr::CharacteristicKind FileType) { if (Reason != PPCallbacks::EnterFile) return; - + // Dependency generation really does want to go all the way to the // file entry for a source location to find out what is depended on. // We do not want #line markers to affect dependency generation! SourceManager &SM = PP->getSourceManager(); - + const FileEntry *FE = SM.getFileEntryForID(SM.getFileID(SM.getInstantiationLoc(Loc))); if (FE == 0) return; - + const char *Filename = FE->getName(); if (!FileMatchesDepCriteria(Filename, FileType)) return; @@ -138,7 +138,7 @@ void DependencyFileCallback::OutputDependencyFile() { *OS << ':'; Columns += 1; - + // Now add each dependency in the order it was seen, but avoiding // duplicates. for (std::vector<std::string>::iterator I = Files.begin(), |