[Libreoffice-commits] core.git: compilerplugins/clang

Luboš Luňák (via logerrit) logerrit at kemper.freedesktop.org
Sun May 19 09:56:50 UTC 2019


 compilerplugins/clang/readability-redundant-pp.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 62fb97fb41477003626af2c15901a75496c4aa22
Author:     Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Wed May 1 11:15:47 2019 +0200
Commit:     Luboš Luňák <l.lunak at collabora.com>
CommitDate: Sun May 19 11:56:14 2019 +0200

    PPCallback clang plugin should say so
    
    Change-Id: I76148f152f57af74935c99e290b30b509511dfd8
    Reviewed-on: https://gerrit.libreoffice.org/72546
    Tested-by: Jenkins
    Reviewed-by: Luboš Luňák <l.lunak at collabora.com>

diff --git a/compilerplugins/clang/readability-redundant-pp.cxx b/compilerplugins/clang/readability-redundant-pp.cxx
index ed7fed1082c9..2411dfb75f62 100644
--- a/compilerplugins/clang/readability-redundant-pp.cxx
+++ b/compilerplugins/clang/readability-redundant-pp.cxx
@@ -40,6 +40,10 @@ public:
     void Ifdef(clang::SourceLocation aLoc, const clang::Token& rMacroNameTok,
                const clang::MacroDefinition& rMacroDefinition) override;
     void Endif(clang::SourceLocation aLoc, clang::SourceLocation aIfLoc) override;
+    enum
+    {
+        isPPCallback = true
+    };
 
 private:
     clang::Preprocessor& m_rPP;


More information about the Libreoffice-commits mailing list