aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Rewrite
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-04-17 22:31:54 +0000
committerTed Kremenek <kremenek@apple.com>2008-04-17 22:31:54 +0000
commit339b9c27759d7b6a53e2370f83f66e78b3254595 (patch)
tree15e66daac43c681523a05a5df269e2a6d9f19c8d /include/clang/Rewrite
parent1ee8d6ffabdec9288dbc87773913fde5e2938772 (diff)
class Preprocessor: Now owns the "predefines" char*; it deletes [] it in its dstor.
clang.cpp: InitializePreprocessor now makes a copy of the contents of PredefinesBuffer and passes it to the preprocessor object. clang.cpp: DriverPreprocessorFactory now calls "InitializePreprocessor" instead of this being done in main(). html::HighlightMacros() now takes a PreprocessorFactory, allowing it to conjure up a new Preprocessor to highlight macros. class HTMLDiagnostics now takes a PreprocessorFactory* that it can use for html::HighlightMacros(). Updated clients of HTMLDiagnostics to use this new interface. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49875 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Rewrite')
-rw-r--r--include/clang/Rewrite/HTMLRewrite.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/Rewrite/HTMLRewrite.h b/include/clang/Rewrite/HTMLRewrite.h
index ded431f156..8c708400ac 100644
--- a/include/clang/Rewrite/HTMLRewrite.h
+++ b/include/clang/Rewrite/HTMLRewrite.h
@@ -22,6 +22,7 @@ namespace clang {
class Rewriter;
class Preprocessor;
+class PreprocessorFactory;
namespace html {
@@ -74,7 +75,7 @@ namespace html {
/// file, to reexpand macros and insert (into the HTML) information about the
/// macro expansions. This won't be perfectly perfect, but it will be
/// reasonably close.
- void HighlightMacros(Rewriter &R, unsigned FileID, Preprocessor &PP);
+ void HighlightMacros(Rewriter &R, unsigned FileID, PreprocessorFactory &PPF);