diff options
author | Brad King <brad.king@kitware.com> | 2023-04-05 19:46:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-04-05 20:12:15 (GMT) |
commit | 2daba01ddf3f79bd4718680ef322f39366eeefef (patch) | |
tree | 4596ebd73af6e29568011d2f4fa708f1739d8903 /Source | |
parent | 850b4d990c1bf15b70cc5dab9794066ab0f1d948 (diff) | |
download | CMake-2daba01ddf3f79bd4718680ef322f39366eeefef.zip CMake-2daba01ddf3f79bd4718680ef322f39366eeefef.tar.gz CMake-2daba01ddf3f79bd4718680ef322f39366eeefef.tar.bz2 |
cmGeneratorTarget: Avoid incidental include-what-you-use warning
Avoid `warning: Extra tokens on pragma line` from IWYU.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index bc5505f..81e95a7 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -8977,10 +8977,10 @@ std::string cmGeneratorTarget::GenerateHeaderSetVerificationFile( cmGeneratedFileStream fout(filename); fout.SetCopyIfDifferent(true); - // IWYU pragma: associated allows include what you use to + // The IWYU "associated" pragma tells include-what-you-use to // consider the headerFile as part of the entire language // unit within include-what-you-use and as a result allows - // one to get IWYU advice for headers :) + // one to get IWYU advice for headers. fout << "#include <" << headerFilename << "> // IWYU pragma: associated\n"; fout.close(); |