forked from OSchip/llvm-project
ArrayRef goodness in MultiplexConsumer, no functionality change.
llvm-svn: 149764
This commit is contained in:
parent
ad6b22eb16
commit
275a671b2a
|
@ -15,6 +15,7 @@
|
||||||
#ifndef CLANG_FRONTEND_MULTIPLEXCONSUMER_H
|
#ifndef CLANG_FRONTEND_MULTIPLEXCONSUMER_H
|
||||||
#define CLANG_FRONTEND_MULTIPLEXCONSUMER_H
|
#define CLANG_FRONTEND_MULTIPLEXCONSUMER_H
|
||||||
|
|
||||||
|
#include "clang/Basic/LLVM.h"
|
||||||
#include "clang/Sema/SemaConsumer.h"
|
#include "clang/Sema/SemaConsumer.h"
|
||||||
#include "llvm/ADT/OwningPtr.h"
|
#include "llvm/ADT/OwningPtr.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
@ -28,7 +29,7 @@ class MultiplexASTDeserializationListener;
|
||||||
class MultiplexConsumer : public SemaConsumer {
|
class MultiplexConsumer : public SemaConsumer {
|
||||||
public:
|
public:
|
||||||
// Takes ownership of the pointers in C.
|
// Takes ownership of the pointers in C.
|
||||||
MultiplexConsumer(const std::vector<ASTConsumer*>& C);
|
MultiplexConsumer(ArrayRef<ASTConsumer*> C);
|
||||||
~MultiplexConsumer();
|
~MultiplexConsumer();
|
||||||
|
|
||||||
// ASTConsumer
|
// ASTConsumer
|
||||||
|
|
|
@ -148,8 +148,9 @@ void MultiplexASTMutationListener::StaticDataMemberInstantiated(
|
||||||
} // end namespace clang
|
} // end namespace clang
|
||||||
|
|
||||||
|
|
||||||
MultiplexConsumer::MultiplexConsumer(const std::vector<ASTConsumer*>& C)
|
MultiplexConsumer::MultiplexConsumer(ArrayRef<ASTConsumer*> C)
|
||||||
: Consumers(C), MutationListener(0), DeserializationListener(0) {
|
: Consumers(C.begin(), C.end()),
|
||||||
|
MutationListener(0), DeserializationListener(0) {
|
||||||
// Collect the mutation listeners and deserialization listeners of all
|
// Collect the mutation listeners and deserialization listeners of all
|
||||||
// children, and create a multiplex listener each if so.
|
// children, and create a multiplex listener each if so.
|
||||||
std::vector<ASTMutationListener*> mutationListeners;
|
std::vector<ASTMutationListener*> mutationListeners;
|
||||||
|
|
Loading…
Reference in New Issue