diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-11 23:58:53 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-11 23:58:53 +0000 |
commit | c7162937a4ccd044a0df67eed4a73ee828c49162 (patch) | |
tree | dd3b9b98bef7debfbb2144fcbc34ca571be78189 /include/clang/Frontend/Utils.h | |
parent | 6a6742a8fc3b056e057e8eb34084e3ecc8f028af (diff) |
Tweak PCH -include handling to make sure it matches the name as would be present
in the predefines buffer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86903 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/Utils.h')
-rw-r--r-- | include/clang/Frontend/Utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/Frontend/Utils.h b/include/clang/Frontend/Utils.h index 60c0f226ef..4bda8bd71d 100644 --- a/include/clang/Frontend/Utils.h +++ b/include/clang/Frontend/Utils.h @@ -14,6 +14,7 @@ #ifndef LLVM_CLANG_FRONTEND_UTILS_H #define LLVM_CLANG_FRONTEND_UTILS_H +#include "llvm/ADT/StringRef.h" #include <vector> #include <string> @@ -40,6 +41,10 @@ class SourceManager; class Stmt; class TargetInfo; +/// Normalize \arg File for use in a user defined #include directive (in the +/// predefines buffer). +std::string NormalizeDashIncludePath(llvm::StringRef File); + /// Apply the header search options to get given HeaderSearch object. void ApplyHeaderSearchOptions(HeaderSearch &HS, const HeaderSearchOptions &HSOpts, |