Bug 1326229 - Move the include for FrontendPluginRegistry.h to MozCheckAction.cpp; r=mystor
authorEhsan Akhgari <ehsan@mozilla.com>
Thu, 29 Dec 2016 11:32:31 -0500
changeset 327609 f215191778e94ac20503b57491bb05dd203631f1
parent 327608 b71f8d890b51cf0a2ad2ccbd98a007feee3af32b
child 327610 6ccd471984affe783a0fcf511389821dea59dcd6
push id31139
push userryanvm@gmail.com
push dateFri, 30 Dec 2016 15:04:57 +0000
treeherdermozilla-central@9104708cc3ac [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmystor
bugs1326229
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1326229 - Move the include for FrontendPluginRegistry.h to MozCheckAction.cpp; r=mystor
build/clang-plugin/MozCheckAction.cpp
build/clang-plugin/plugin.h
--- a/build/clang-plugin/MozCheckAction.cpp
+++ b/build/clang-plugin/MozCheckAction.cpp
@@ -1,13 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
+#include "plugin.h"
 #include "DiagnosticsMatcher.h"
+#include "clang/Frontend/FrontendPluginRegistry.h"
 
 class MozCheckAction : public PluginASTAction {
 public:
   ASTConsumerPtr CreateASTConsumer(CompilerInstance &CI,
                                    StringRef FileName) override {
     void* Buffer = CI.getASTContext().Allocate<DiagnosticsMatcher>();
     auto Matcher = new(Buffer) DiagnosticsMatcher(CI);
     return Matcher->makeASTConsumer();
--- a/build/clang-plugin/plugin.h
+++ b/build/clang-plugin/plugin.h
@@ -7,17 +7,16 @@
 
 #include "clang/AST/ASTConsumer.h"
 #include "clang/AST/ASTContext.h"
 #include "clang/AST/RecursiveASTVisitor.h"
 #include "clang/ASTMatchers/ASTMatchFinder.h"
 #include "clang/ASTMatchers/ASTMatchers.h"
 #include "clang/Basic/Version.h"
 #include "clang/Frontend/CompilerInstance.h"
-#include "clang/Frontend/FrontendPluginRegistry.h"
 #include "clang/Frontend/MultiplexConsumer.h"
 #include "clang/Sema/Sema.h"
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/Path.h"
 #include <memory>
 #include <iterator>