Skip to content

Commit 7871a6d

Browse files
committed
formatting
1 parent a1faeca commit 7871a6d

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

clang/include/clang/Sema/Sema.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1962,12 +1962,12 @@ class Sema final : public SemaBase {
19621962
SymbolNames PendingExportNames;
19631963

19641964
FunctionDecl *tryFunctionLookUpInPragma(NestedNameSpecifier *NestedName,
1965-
SourceLocation NameLoc);
1965+
SourceLocation NameLoc);
19661966

19671967
/// trySymbolLookUp try to look up a decl matching the nested specifier
19681968
/// with optional type list.
19691969
NamedDecl *trySymbolLookUpInPragma(NestedNameSpecifier *NestedName,
1970-
const clang::Sema::SymbolLabel &Label);
1970+
const clang::Sema::SymbolLabel &Label);
19711971

19721972
/// ActonPragmaExport - called on well-formed '\#pragma export'.
19731973
void ActOnPragmaExport(NestedNameSpecifier *NestedId,

clang/lib/Sema/SemaAttr.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,7 @@ static bool typeListMatches(ASTContext &Context, FunctionDecl *FD,
13661366
}
13671367

13681368
FunctionDecl *Sema::tryFunctionLookUpInPragma(NestedNameSpecifier *NestedName,
1369-
SourceLocation NameLoc) {
1369+
SourceLocation NameLoc) {
13701370
assert(!NestedName->getPrefix() ||
13711371
NestedName->getPrefix()->getKind() == NestedNameSpecifier::Identifier);
13721372
IdentifierInfo *Prefix =
@@ -1396,8 +1396,9 @@ FunctionDecl *Sema::tryFunctionLookUpInPragma(NestedNameSpecifier *NestedName,
13961396
return nullptr;
13971397
}
13981398

1399-
NamedDecl *Sema::trySymbolLookUpInPragma(NestedNameSpecifier *NestedName,
1400-
const clang::Sema::SymbolLabel &Label) {
1399+
NamedDecl *
1400+
Sema::trySymbolLookUpInPragma(NestedNameSpecifier *NestedName,
1401+
const clang::Sema::SymbolLabel &Label) {
14011402

14021403
assert(!NestedName->getPrefix() ||
14031404
NestedName->getPrefix()->getKind() == NestedNameSpecifier::Identifier);
@@ -1428,7 +1429,8 @@ NamedDecl *Sema::trySymbolLookUpInPragma(NestedNameSpecifier *NestedName,
14281429

14291430
// All function parameters must match if specified in pragma otherwise,
14301431
// we accept a function found by lookup only if it's the only one.
1431-
if ((Label.TypeList.has_value() && typeListMatches(Context, FD, Label)) ||
1432+
if ((Label.TypeList.has_value() &&
1433+
typeListMatches(Context, FD, Label)) ||
14321434
(!Label.TypeList.has_value() && LRes.isSingleResult()))
14331435
return FD;
14341436
}

0 commit comments

Comments
 (0)