]> granicus.if.org Git - clang/commitdiff
Handle PragmaDebug in PPChainedCallbacks
authorAlex Lorenz <arphaman@gmail.com>
Wed, 25 Oct 2017 22:01:23 +0000 (22:01 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Wed, 25 Oct 2017 22:01:23 +0000 (22:01 +0000)
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

include/clang/Lex/PPCallbacks.h

index 8cb1656270479058d016606ac102aa1043a89b19..19bce4dd32e88943aeaf8366e7deba1600152edd 100644 (file)
@@ -410,6 +410,11 @@ public:
     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,
                      PragmaMessageKind Kind, StringRef Str) override {
     First->PragmaMessage(Loc, Namespace, Kind, Str);