summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-01-16 14:52:22 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-01-16 14:52:45 (GMT)
commitbd54cc774a5b14720a9e741fc40192ea11106443 (patch)
treef8d0bab5ca429938678e74af746ee9ab0ccdd778 /Source/cmGeneratorTarget.cxx
parente2c39e05732409d60e7921b45a70dd8b9aa24b5a (diff)
parentb056bc34258267c4ae59c72e3777d0a0f0b5a1b1 (diff)
downloadCMake-bd54cc774a5b14720a9e741fc40192ea11106443.zip
CMake-bd54cc774a5b14720a9e741fc40192ea11106443.tar.gz
CMake-bd54cc774a5b14720a9e741fc40192ea11106443.tar.bz2
Merge topic 'semi-warnings'
b056bc3425 Fix most clang -Wextra-semi-stmt warnings in C++ files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2795
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index c2773fc..6515dfa 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -436,14 +436,14 @@ static void handleSystemIncludesDep(
/* clang-format off */
#define IMPLEMENT_VISIT(KIND) \
- { \
+ do { \
KindedSources const& kinded = this->GetKindedSources(config); \
for (SourceAndKind const& s : kinded.Sources) { \
if (s.Kind == KIND) { \
data.push_back(s.Source.Value); \
} \
} \
- }
+ } while (false)
/* clang-format on */
void cmGeneratorTarget::GetObjectSources(