Skip to content

Commit 1fa26ef

Browse files
[AST] Drop const from a return type (NFC) (#140665)
1 parent e0515c8 commit 1fa26ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/AST/ByteCode/Record.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Record::Record(const RecordDecl *Decl, BaseList &&SrcBases,
2929
VirtualBaseMap[V.Decl] = &V;
3030
}
3131

32-
const std::string Record::getName() const {
32+
std::string Record::getName() const {
3333
std::string Ret;
3434
llvm::raw_string_ostream OS(Ret);
3535
Decl->getNameForDiagnostic(OS, Decl->getASTContext().getPrintingPolicy(),

clang/lib/AST/ByteCode/Record.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Record final {
5252
/// Returns the underlying declaration.
5353
const RecordDecl *getDecl() const { return Decl; }
5454
/// Returns the name of the underlying declaration.
55-
const std::string getName() const;
55+
std::string getName() const;
5656
/// Checks if the record is a union.
5757
bool isUnion() const { return IsUnion; }
5858
/// Checks if the record is an anonymous union.

0 commit comments

Comments
 (0)