Skip to content

Commit ccd3bca

Browse files
committed
Update handling of global variable declarations, refactor code, add diagnostic messages.
1 parent 54aa44b commit ccd3bca

File tree

3 files changed

+147
-132
lines changed

3 files changed

+147
-132
lines changed

include/tsar/Support/DiagnosticKinds.td

+2
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ def note_assert_no_macro : Note<"macro found">;
107107
def warn_rename_macro_prevent : Warning<"macro prevent renaming">;
108108

109109
def warn_splitdeclaration_macro_prevent : Warning<"macro prevent splitting">;
110+
def warn_parm_var_decl_split_prevent : Warning<"local parm variable declarations are not splitted">
111+
def warn_pointers_to_constants_split_prevent : Warning<"declarations of pointers to constants are not splitted">
110112

111113
def warn_propagate_macro_prevent : Warning<"macro prevent expression propagation">;
112114
def warn_disable_propagate_in_include : Warning<"disable expression propagation in header file">;

lib/Transform/Clang/CMakeLists.txt

+1-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ set(TRANSFORM_SOURCES Passes.cpp ExprPropagation.cpp Inline.cpp RenameLocal.cpp
22
DeadDeclsElimination.cpp Format.cpp OpenMPAutoPar.cpp DVMHWriter.cpp
33
SharedMemoryAutoPar.cpp DVMHDirecitves.cpp DVMHSMAutoPar.cpp
44
DVMHDataTransferIPO.cpp StructureReplacement.cpp LoopInterchange.cpp
5-
LoopReversal.cpp)
6-
DeadDeclsElimination.cpp Format.cpp OpenMPAutoPar.cpp
7-
SharedMemoryAutoPar.cpp DVMHSMAutoPar.cpp StructureReplacement.cpp
8-
LoopInterchange.cpp LoopReversal.cpp SplitDecls.cpp)
5+
LoopReversal.cpp SplitDecls.cpp)
96

107
if(MSVC_IDE)
118
file(GLOB_RECURSE TRANSFORM_HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}

0 commit comments

Comments
 (0)