Skip to content

Commit 3239123

Browse files
committed
formatting
1 parent d1e2a9a commit 3239123

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,6 @@ Improvements to Clang's diagnostics
596596
- Added ``-Wstatic-downcast`` to diagnose potentially dangerous uses of ``static_cast`` that perform a base-to-derived cast
597597
on pointers and references of polymorphic types.
598598

599-
600599
Improvements to Clang's time-trace
601600
----------------------------------
602601

clang/lib/Sema/SemaCast.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "clang/AST/ExprCXX.h"
2020
#include "clang/AST/ExprObjC.h"
2121
#include "clang/AST/RecordLayout.h"
22+
#include "clang/Basic/Diagnostic.h"
2223
#include "clang/Basic/PartialDiagnostic.h"
2324
#include "clang/Basic/TargetInfo.h"
2425
#include "clang/Lex/Preprocessor.h"
@@ -1765,7 +1766,8 @@ TryStaticDowncast(Sema &Self, CanQualType SrcType, CanQualType DestType,
17651766
<< SrcType << DestType
17661767
<< OpRange
17671768
<< Self.LangOpts.RTTI;
1768-
if(Self.LangOpts.RTTI)
1769+
1770+
if (Self.LangOpts.RTTI)
17691771
D << FixItHint::CreateReplacement(OpRange.getBegin(), "dynamic_cast");
17701772
}
17711773

0 commit comments

Comments
 (0)