mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:17:34 +08:00
[AST] Drop const from a return type (NFC) (#140665)
This commit is contained in:
@@ -29,7 +29,7 @@ Record::Record(const RecordDecl *Decl, BaseList &&SrcBases,
|
||||
VirtualBaseMap[V.Decl] = &V;
|
||||
}
|
||||
|
||||
const std::string Record::getName() const {
|
||||
std::string Record::getName() const {
|
||||
std::string Ret;
|
||||
llvm::raw_string_ostream OS(Ret);
|
||||
Decl->getNameForDiagnostic(OS, Decl->getASTContext().getPrintingPolicy(),
|
||||
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
/// Returns the underlying declaration.
|
||||
const RecordDecl *getDecl() const { return Decl; }
|
||||
/// Returns the name of the underlying declaration.
|
||||
const std::string getName() const;
|
||||
std::string getName() const;
|
||||
/// Checks if the record is a union.
|
||||
bool isUnion() const { return IsUnion; }
|
||||
/// Checks if the record is an anonymous union.
|
||||
|
||||
Reference in New Issue
Block a user