浏览代码

Handle PragmaDebug in PPChainedCallbacks

The test is in clang-tools-extra/test/pp-trace


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316621 91177308-0d34-0410-b5e6-96231b3b80d8
Alex Lorenz 7 年之前
父节点
当前提交
2150c7da3d
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      include/clang/Lex/PPCallbacks.h

+ 5 - 0
include/clang/Lex/PPCallbacks.h

@@ -410,6 +410,11 @@ public:
     Second->PragmaDetectMismatch(Loc, Name, Value);
     Second->PragmaDetectMismatch(Loc, Name, Value);
   }
   }
 
 
+  void PragmaDebug(SourceLocation Loc, StringRef DebugType) override {
+    First->PragmaDebug(Loc, DebugType);
+    Second->PragmaDebug(Loc, DebugType);
+  }
+
   void PragmaMessage(SourceLocation Loc, StringRef Namespace,
   void PragmaMessage(SourceLocation Loc, StringRef Namespace,
                      PragmaMessageKind Kind, StringRef Str) override {
                      PragmaMessageKind Kind, StringRef Str) override {
     First->PragmaMessage(Loc, Namespace, Kind, Str);
     First->PragmaMessage(Loc, Namespace, Kind, Str);