- May 03, 2016
-
-
Brad King authored
Re-apply the approach from commit e1c77472 (Format include directive blocks and ordering with clang-format, 2016-04-29) but this time be more careful about exclusion of parser generator sources: $ git ls-files -z -- \ '*.c' '*.cc' '*.cpp' '*.cxx' '*.h' '*.hh' '*.hpp' '*.hxx' | egrep -z -v '^Source/cmCommandArgumentLexer\.' | egrep -z -v '^Source/cmCommandArgumentParser\.' | egrep -z -v '^Source/cmDependsJavaLexer\.' | egrep -z -v '^Source/cmDependsJavaParser\.' | egrep -z -v '^Source/cmExprLexer\.' | egrep -z -v '^Source/cmExprParser\.' | egrep -z -v '^Source/cmFortranLexer\.' | egrep -z -v '^Source/cmFortranParser\.' | egrep -z -v '^Source/cmListFileLexer\.' | egrep -z -v '^Source/cm_sha2' | egrep -z -v '^Source/(kwsys|CursesDialog/form)/' | egrep -z -v '^Utilities/(KW|cm).*/' | egrep -z -v '^Tests/Module/GenerateExportHeader' | egrep -z -v '^Tests/RunCMake/CommandLine/cmake_depends/test_UTF-16LE.h' | xargs -0 clang-format -i Also drop use of custom sorting for `sys/types.h`.
-
Brad King authored
When this header is included in blocks where order does not matter, just place it in lexicographic order as clang-format would by default.
-
Brad King authored
Include the two headers in an isolated block with a comment separating them so that tools that re-order includes do not re-order these.
-
Brad King authored
-
Brad King authored
Fix the order accidentally broken by commit e1c77472 (Format include directive blocks and ordering with clang-format, 2016-04-29). Include the KWSys header first in its own block so that it is not moved by tools that re-order includes. It must be included first to define large file support macros consistently.
-
- Apr 29, 2016
-
-
Brad King authored
Sort include directives within each block (separated by a blank line) in lexicographic order (except to prioritize `sys/types.h` first). First run `clang-format` with the config file: --- SortIncludes: false ... Commit the result temporarily. Then run `clang-format` again with: --- SortIncludes: true IncludeCategories: - Regex: 'sys/types.h' Priority: -1 ... Commit the result temporarily. Start a new branch and cherry-pick the second commit. Manually resolve conflicts to preserve indentation of re-ordered includes. This cleans up the include ordering without changing any other style. Use the following command to run `clang-format`: $ git ls-files -z -- \ '*.c' '*.cc' '*.cpp' '*.cxx' '*.h' '*.hh' '*.hpp' '*.hxx' | egrep -z -v '(Lexer|Parser|ParserHelper)\.' | egrep -z -v '^Source/cm_sha2' | egrep -z -v '^Source/(kwsys|CursesDialog/form)/' | egrep -z -v '^Utilities/(KW|cm).*/' | egrep -z -v '^Tests/Module/GenerateExportHeader' | egrep -z -v '^Tests/RunCMake/CommandLine/cmake_depends/test_UTF-16LE.h' | xargs -0 clang-format -i This selects source files that do not come from a third-party. Inspired-by:
Daniel Pfeifer <daniel@pfeifer-mail.de>
-
Brad King authored
Each source file has a logical first include file. Include it in an isolated block so that tools that sort includes do not move them.
-
Brad King authored
In `detect_nsis_overwrite.cpp` we include windows.h first, and we must preserve that. Place the include in an isolated block so that tools that sort includes do not move it.
-
Brad King authored
These tests use a precompiled header that must be included first. Include the header in an isolated block so that tools that sort includes do not move it.
-
This test generates a header file which is not self-contained. Include it in a separate block of includes so that tools that sort includes do not move it.
-
-
Brad King authored
This file has not been used since commit v2.8.10~218^2~7^2 (Watcom: Simplify compiler version detection, 2012-08-13).
-
- Apr 28, 2016
-
-
21b1fa5c Help: Add notes for topic 'intel-compiler-features' 9addce99 Features: Record standard flags for Intel C/C++ on Windows 15a6c950 WCDH: Add Intel to list of supported compilers 36f32ede Features: Record standards and features for Intel C on UNIX d028b948 Features: Specify minimum version Intel C++ 12.1 be910f00 Features: Record standards and features for Intel C++ on UNIX 7f401ae4 Features: Detect C default dialect on MSVC-like compilers
-
7db9f3f2 ExternalProject: Add option to perform a shallow Git clone (#15291)
-
2d7d33ec Help: Hyperlink properties
-
04d74a7f Clang-Tidy: copy stdout to sterr; ignore original stderr
-
Brad King authored
-
Brad King authored
Select the `-std=` or `-Qstd=` flag based on whether Intel is GNU-like or MSVC-like, respectively.
-
-
Record features for Intel C 12.1 and above. Skip this for now on Windows (where Intel C simulates MSVC).
-
Versions below 12.1 do not provide enough information to properly detect if compiling with c++98 or c++0x enabled so remove them from the supported list.
-
Skip this for now on Windows (where Intel C++ simulates MSVC).
-
Brad King authored
These compilers default to C 90 but do not define __STDC__. While MSVC itself has no option to change the dialect, compilers that document compatibility with MSVC and define _MSC_VER may (e.g. Intel).
-
Kitware Robot authored
-
- Apr 27, 2016
-
-
Gregor Jasny authored
-
1703a6d2 GHS: Fix handling of duplicate source filenames (#16046)
-
Brad King authored
Inspired-by:
Ilya Kulakov <kulakov.ilya@gmail.com>
-
Clang-Tidy writes the number of warnings, the number of suppressed warnings, and instructions on how to suppress warnings to stderr. Since each source file is checked individually, this repetitive information is disturbing and should be suppressed. The actual warning messages are written to stdout. Some IDEs (eg. QtCreator) analyze only stderr for issues. Redirecting Clang-Tidy's stdout to stderr makes sure the warnings are correctly displayed.
-
Kitware Robot authored
-
- Apr 26, 2016
-
-
Brad King authored
Solution folders are supported on VS 8 and above in the full versions and on VS 11 and above in the express versions.
-
Brad King authored
-
Kitware Robot authored
-
- Apr 25, 2016
-
-
Green Hills MULTI project files must specify explicitly distinct object file names for source files with the same name.
-
-
To avoid Race conditions with other processes writing to stdout/stderr compose the whole message in a std::stringstream then submit the single complete message.
-
Kitware Robot authored
-
- Apr 24, 2016
-
-
Kitware Robot authored
-
- Apr 23, 2016
-
-
Kitware Robot authored
-