Skip to content

Commit 7e01fdf

Browse files
committed
tests: add indent-tests (no references yet)
1 parent ec95a1e commit 7e01fdf

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed

test/indent1.cmake

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
set_property(TARGET foo APPEND PROPERTY
2+
INCLUDE_DIRECTORIES ${BAR}
3+
4+
message(STATUS "Hello World")
5+
6+
# expected:
7+
#set_property(TARGET foo APPEND PROPERTY
8+
# INCLUDE_DIRECTORIES ${BAR}
9+
#
10+
# message(STATUS "Hello World")

test/indent2.cmake

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
set_property(TARGET foo APPEND PROPERTY
2+
INCLUDE_DIRECTORIES ${BAR})
3+
message(STATUS "Hello World")
4+
5+
6+
set_property(TARGET foo APPEND PROPERTY
7+
INCLUDE_DIRECTORIES ${BAR})
8+
message(STATUS "Hello World")
9+
10+
11+
# expected:
12+
#set_property(TARGET foo APPEND PROPERTY
13+
# INCLUDE_DIRECTORIES ${BAR})
14+
#message(STATUS "Hello World")
15+
#
16+
#
17+
#set_property(TARGET foo APPEND PROPERTY
18+
# INCLUDE_DIRECTORIES ${BAR})
19+
#message(STATUS "Hello World")

test/indent3.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
set_property(TARGET foo APPEND PROPERTY INCLUDE_DIRECTORIES ${BAR})
2+
message(STATUS "Hello World")
3+
4+
# expected
5+
#set_property(TARGET foo APPEND PROPERTY INCLUDE_DIRECTORIES ${BAR})
6+
#message(STATUS "Hello World")

test/indent4.cmake

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
set_property(TARGET foo APPEND PROPERTY
2+
# with comment
3+
INCLUDE_DIRECTORIES ${BAR})
4+
5+
message(STATUS "Hello World")
6+
7+
# expected
8+
#set_property(TARGET foo APPEND PROPERTY
9+
# # with comment
10+
# INCLUDE_DIRECTORIES ${BAR})
11+
#
12+
#message(STATUS "Hello World")

0 commit comments

Comments
 (0)