forked from OSchip/llvm-project
Constify NestedNameSpecifier::dump and add a no-argument dump function suitable for calling from a debugger.
llvm-svn: 256472
This commit is contained in:
parent
7574241053
commit
015e6c8a6a
|
@ -217,7 +217,8 @@ public:
|
|||
|
||||
/// \brief Dump the nested name specifier to standard output to aid
|
||||
/// in debugging.
|
||||
void dump(const LangOptions &LO);
|
||||
void dump(const LangOptions &LO) const;
|
||||
void dump() const;
|
||||
};
|
||||
|
||||
/// \brief A C++ nested-name-specifier augmented with source location
|
||||
|
|
|
@ -318,7 +318,12 @@ NestedNameSpecifier::print(raw_ostream &OS,
|
|||
OS << "::";
|
||||
}
|
||||
|
||||
void NestedNameSpecifier::dump(const LangOptions &LO) {
|
||||
void NestedNameSpecifier::dump(const LangOptions &LO) const {
|
||||
print(llvm::errs(), PrintingPolicy(LO));
|
||||
}
|
||||
|
||||
void NestedNameSpecifier::dump() const {
|
||||
LangOptions LO;
|
||||
print(llvm::errs(), PrintingPolicy(LO));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue