Skip to content

Commit f4dd886

Browse files
clang/utils/TableGen/ClangAttrEmitter.cpp: 2 * pointless copy ? (#94372)
modified parameter for code quality
1 parent 0360d03 commit f4dd886

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/utils/TableGen/ClangAttrEmitter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,8 @@ namespace {
394394

395395
public:
396396
DefaultSimpleArgument(const Record &Arg, StringRef Attr,
397-
std::string T, int64_t Default)
398-
: SimpleArgument(Arg, Attr, T), Default(Default) {}
397+
const std::string &T, int64_t Default)
398+
: SimpleArgument(Arg, Attr, T), Default(Default) {}
399399

400400
void writeAccessors(raw_ostream &OS) const override {
401401
SimpleArgument::writeAccessors(OS);
@@ -4994,7 +4994,7 @@ class SpellingList {
49944994
return Spellings[(size_t)K];
49954995
}
49964996

4997-
void add(const Record &Attr, FlattenedSpelling Spelling) {
4997+
void add(const Record &Attr, const FlattenedSpelling &Spelling) {
49984998
SpellingKind Kind =
49994999
StringSwitch<SpellingKind>(Spelling.variety())
50005000
.Case("GNU", SpellingKind::GNU)

0 commit comments

Comments
 (0)