forked from OSchip/llvm-project
parent
37d8015dc1
commit
46f87dcad4
|
@ -456,13 +456,13 @@ public:
|
||||||
/// Destroy - Call destructors and release memory.
|
/// Destroy - Call destructors and release memory.
|
||||||
virtual void Destroy(ASTContext& C);
|
virtual void Destroy(ASTContext& C);
|
||||||
|
|
||||||
void print(llvm::raw_ostream &Out, unsigned Indentation = 0);
|
void print(llvm::raw_ostream &Out, unsigned Indentation = 0) const;
|
||||||
void print(llvm::raw_ostream &Out, const PrintingPolicy &Policy,
|
void print(llvm::raw_ostream &Out, const PrintingPolicy &Policy,
|
||||||
unsigned Indentation = 0);
|
unsigned Indentation = 0) const;
|
||||||
static void printGroup(Decl** Begin, unsigned NumDecls,
|
static void printGroup(Decl** Begin, unsigned NumDecls,
|
||||||
llvm::raw_ostream &Out, const PrintingPolicy &Policy,
|
llvm::raw_ostream &Out, const PrintingPolicy &Policy,
|
||||||
unsigned Indentation = 0);
|
unsigned Indentation = 0);
|
||||||
void dump();
|
void dump() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const Attr *getAttrsImpl() const;
|
const Attr *getAttrsImpl() const;
|
||||||
|
|
|
@ -77,14 +77,14 @@ namespace {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
void Decl::print(llvm::raw_ostream &Out, unsigned Indentation) {
|
void Decl::print(llvm::raw_ostream &Out, unsigned Indentation) const {
|
||||||
print(Out, getASTContext().PrintingPolicy, Indentation);
|
print(Out, getASTContext().PrintingPolicy, Indentation);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Decl::print(llvm::raw_ostream &Out, const PrintingPolicy &Policy,
|
void Decl::print(llvm::raw_ostream &Out, const PrintingPolicy &Policy,
|
||||||
unsigned Indentation) {
|
unsigned Indentation) const {
|
||||||
DeclPrinter Printer(Out, getASTContext(), Policy, Indentation);
|
DeclPrinter Printer(Out, getASTContext(), Policy, Indentation);
|
||||||
Printer.Visit(this);
|
Printer.Visit(const_cast<Decl*>(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
static QualType GetBaseType(QualType T) {
|
static QualType GetBaseType(QualType T) {
|
||||||
|
@ -149,7 +149,7 @@ void Decl::printGroup(Decl** Begin, unsigned NumDecls,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Decl::dump() {
|
void Decl::dump() const {
|
||||||
print(llvm::errs());
|
print(llvm::errs());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue