/// \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
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));
}