Skip to content

Commit

Permalink
[NFC] Move hlsl::DiagnoseTranslationUnit to separate file. (#6126)
Browse files Browse the repository at this point in the history
Since DiagnoseTranslationUnit is after Sema, it doesn't need to be part
of SemaHLSL.
This is in preparation for moving DiagnoseHLSLMethodCall to
hlsl::DiagnoseTranslationUnit for access to the call graph.

Only move code to new file, not other changes except replace
OutputDebugFormat with llvm::dbgs for CallGraphWithRecurseGuard::dump.

For #5855
  • Loading branch information
python3kgae authored Jan 5, 2024
1 parent d936753 commit 95f00d0
Show file tree
Hide file tree
Showing 4 changed files with 427 additions and 419 deletions.
5 changes: 0 additions & 5 deletions tools/clang/include/clang/Sema/SemaHLSL.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,6 @@ void DiagnosePackingOffset(clang::Sema *self, clang::SourceLocation loc,
void DiagnoseRegisterType(clang::Sema *self, clang::SourceLocation loc,
clang::QualType type, char registerType);

clang::FunctionDecl *ValidateNoRecursion(clang::Sema *self,
clang::FunctionDecl *FD);

void ValidateNoRecursionInTranslationUnit(clang::Sema *self);

void DiagnoseTranslationUnit(clang::Sema *self);

void DiagnoseUnusualAnnotationsForHLSL(
Expand Down
1 change: 1 addition & 0 deletions tools/clang/lib/Sema/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ add_clang_library(clangSema
SemaExprObjC.cpp
SemaFixItUtils.cpp
SemaHLSL.cpp # HLSL Change
SemaHLSLDiagnoseTU.cpp # HLSL Change
SemaInit.cpp
SemaLambda.cpp
SemaLookup.cpp
Expand Down
Loading

0 comments on commit 95f00d0

Please sign in to comment.