Skip to content

Commit dae88ea

Browse files
committed
why not use digit separators everywhere?
1 parent 9a9d663 commit dae88ea

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

clang/lib/Sema/SemaDeclCXX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13198,7 +13198,7 @@ NamedDecl *Sema::BuildUsingDeclaration(
1319813198
if (getLangOpts().CPlusPlus14 && II && II->isStr("gets") &&
1319913199
CurContext->isStdNamespace() &&
1320013200
isa<TranslationUnitDecl>(LookupContext) &&
13201-
PP.NeedsStdLibCxxWorkaroundBefore(20161221) &&
13201+
PP.NeedsStdLibCxxWorkaroundBefore(2016'12'21) &&
1320213202
getSourceManager().isInSystemHeader(UsingLoc))
1320313203
return nullptr;
1320413204
UsingValidatorCCC CCC(HasTypenameKeyword, IsInstantiation, SS.getScopeRep(),

clang/lib/Sema/SemaExceptionSpec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static const FunctionProtoType *GetUnderlyingFunction(QualType T)
4545
bool Sema::isLibstdcxxEagerExceptionSpecHack(const Declarator &D) {
4646
auto *RD = dyn_cast<CXXRecordDecl>(CurContext);
4747

48-
if (!getPreprocessor().NeedsStdLibCxxWorkaroundBefore(20160427))
48+
if (!getPreprocessor().NeedsStdLibCxxWorkaroundBefore(2016'04'27))
4949
return false;
5050
// All the problem cases are member functions named "swap" within class
5151
// templates declared directly within namespace std or std::__debug or

clang/lib/Sema/SemaInit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ ExprResult InitListChecker::PerformEmptyInit(SourceLocation Loc,
645645
if (!InitSeq && EmptyInitList &&
646646
InitSeq.getFailureKind() ==
647647
InitializationSequence::FK_ExplicitConstructor &&
648-
SemaRef.getPreprocessor().NeedsStdLibCxxWorkaroundBefore(20140422)) {
648+
SemaRef.getPreprocessor().NeedsStdLibCxxWorkaroundBefore(2014'04'22)) {
649649
OverloadCandidateSet::iterator Best;
650650
OverloadingResult O =
651651
InitSeq.getFailedCandidateSet()

clang/lib/Sema/SemaTemplate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4453,7 +4453,7 @@ static bool IsLibstdcxxStdFormatKind(Preprocessor &PP, VarDecl *Var) {
44534453
// GCC master branch:
44544454
// https://gcc.gnu.org/g:9361966d80f625c5accc25cbb439f0278dd8b278
44554455
// https://gcc.gnu.org/g:c65725eccbabf3b9b5965f27fff2d3b9f6c75930
4456-
return PP.NeedsStdLibCxxWorkaroundBefore(20250520);
4456+
return PP.NeedsStdLibCxxWorkaroundBefore(2025'05'20);
44574457
}
44584458
} // end anonymous namespace
44594459

clang/lib/Sema/SemaTemplateInstantiateDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@ Decl *TemplateDeclInstantiator::InstantiateTypedefNameDecl(TypedefNameDecl *D,
14491449
// happen to be processing that implementation, fake up the g++ ?:
14501450
// semantics. See LWG issue 2141 for more information on the bug. The bugs
14511451
// are fixed in g++ and libstdc++ 4.9.0 (2014-04-22).
1452-
if (SemaRef.getPreprocessor().NeedsStdLibCxxWorkaroundBefore(20140422)) {
1452+
if (SemaRef.getPreprocessor().NeedsStdLibCxxWorkaroundBefore(2014'04'22)) {
14531453
const DecltypeType *DT = DI->getType()->getAs<DecltypeType>();
14541454
CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(D->getDeclContext());
14551455
if (DT && RD && isa<ConditionalOperator>(DT->getUnderlyingExpr()) &&

0 commit comments

Comments
 (0)