diff options
author | Ivan Donchevskii <ivan.donchevskii@qt.io> | 2018-05-17 09:15:22 +0000 |
---|---|---|
committer | Ivan Donchevskii <ivan.donchevskii@qt.io> | 2018-05-17 09:15:22 +0000 |
commit | f70d28b1f458c79aa70bcf85111c35442588d01e (patch) | |
tree | de438d94812f0d8644a9f32ffb0db46f7e5a78d2 /clang/lib/Frontend/FrontendAction.cpp | |
parent | 75cfa341567851509f916db580927a958487b4dc (diff) | |
download | bcm5719-llvm-f70d28b1f458c79aa70bcf85111c35442588d01e.tar.gz bcm5719-llvm-f70d28b1f458c79aa70bcf85111c35442588d01e.zip |
Revert https://reviews.llvm.org/D46050 and https://reviews.llvm.org/D45815
Windows line endings.
Requires proper resubmission.
llvm-svn: 332585
Diffstat (limited to 'clang/lib/Frontend/FrontendAction.cpp')
-rw-r--r-- | clang/lib/Frontend/FrontendAction.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/clang/lib/Frontend/FrontendAction.cpp b/clang/lib/Frontend/FrontendAction.cpp index 1ebc37310de..e4fb022c2a1 100644 --- a/clang/lib/Frontend/FrontendAction.cpp +++ b/clang/lib/Frontend/FrontendAction.cpp @@ -150,16 +150,12 @@ FrontendAction::CreateWrappedASTConsumer(CompilerInstance &CI, return nullptr; // If there are no registered plugins we don't need to wrap the consumer - if (FrontendPluginRegistry::begin() == FrontendPluginRegistry::end())
- return Consumer;
-
- // If this is a code completion run, avoid invoking the plugin consumers
- if (CI.hasCodeCompletionConsumer())
- return Consumer;
-
- // Collect the list of plugins that go before the main action (in Consumers)
- // or after it (in AfterConsumers)
- std::vector<std::unique_ptr<ASTConsumer>> Consumers;
+ if (FrontendPluginRegistry::begin() == FrontendPluginRegistry::end()) + return Consumer; + + // Collect the list of plugins that go before the main action (in Consumers) + // or after it (in AfterConsumers) + std::vector<std::unique_ptr<ASTConsumer>> Consumers; std::vector<std::unique_ptr<ASTConsumer>> AfterConsumers; for (FrontendPluginRegistry::iterator it = FrontendPluginRegistry::begin(), ie = FrontendPluginRegistry::end(); |