| 
27 | 27 | # clang-tidy-all - will run `<script> all`  | 
28 | 28 | # clang-tidy-diff - will run `<script> diff`  | 
29 | 29 | #  | 
30 |  | -# If a script is not explicitly passed this function will first search for a   | 
 | 30 | +# If a script is not explicitly passed this function will first search for a  | 
31 | 31 | # custom linting script. The script must exist in ${CMAKE_CURRENT_SOURCE_DIR}/scripts  | 
32 | 32 | # and be named either clang-tidy.sh or clang-tidy.bash. It will be called with  | 
33 | 33 | # the same arguments as described above.  | 
34 | 34 | #  | 
35 | 35 | # If no custom script is available this function will generate some default linting  | 
36 |  | -# commands. clang-tidy will be called and passed a list of files to lint.   | 
 | 36 | +# commands. clang-tidy will be called and passed a list of files to lint.  | 
37 | 37 | #  | 
38 | 38 | # The file list can be constructed in one of two ways, either by GLOB patterns or  | 
39 | 39 | # a list of targets  | 
 | 
76 | 76 | #  | 
77 | 77 | # The default value is ON for top level projects, and OFF for any others.  | 
78 | 78 | #  | 
79 |  | -# Running   | 
 | 79 | +# Running  | 
80 | 80 | #  | 
81 | 81 | # cmake -D<project>_ENABLE_CLANG_TIDY=OFF ..  | 
82 | 82 | #  | 
@@ -237,7 +237,7 @@ function(swift_setup_clang_tidy)  | 
237 | 237 | 
 
  | 
238 | 238 |   # First search for an appropriate clang-tidy  | 
239 | 239 |   if(NOT x_CLANG_TIDY_NAMES)  | 
240 |  | -    set(x_CLANG_TIDY_NAMES   | 
 | 240 | +    set(x_CLANG_TIDY_NAMES  | 
241 | 241 |         clang-tidy60 clang-tidy-6.0  | 
242 | 242 |         clang-tidy40 clang-tidy-4.0  | 
243 | 243 |         clang-tidy39 clang-tidy-3.9  | 
@@ -272,7 +272,6 @@ function(swift_setup_clang_tidy)  | 
272 | 272 |   if(NOT srcs)  | 
273 | 273 |     early_exit(WARNING "Couldn't find any source/header files to tidy in ${PROJECT_NAME}")  | 
274 | 274 |   else()  | 
275 |  | -    message(WARNING "$$$$ ${x_EXTRA_ARGS}")  | 
276 | 275 |     create_targets(  | 
277 | 276 |         TOP_LEVEL ${top_level_project}  | 
278 | 277 |         ALL_COMMAND  | 
 | 
0 commit comments