Skip to content

Commit 8c3dac0

Browse files
tautschnigDaniel Kroening
authored and
Daniel Kroening
committed
clang-format if statement
1 parent 2d76de1 commit 8c3dac0

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/ansi-c/c_preprocess.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -580,13 +580,14 @@ bool c_preprocess_gcc_clang(
580580
argv.push_back("-nostdinc");
581581

582582
// Set the standard
583-
if(has_suffix(file, ".cpp") || has_suffix(file, ".CPP") ||
584-
#ifndef _WIN32
585-
has_suffix(file, ".C") ||
586-
#endif
587-
has_suffix(file, ".c++") || has_suffix(file, ".C++") ||
588-
has_suffix(file, ".cp") || has_suffix(file, ".CP") ||
589-
has_suffix(file, ".cc") || has_suffix(file, ".cxx"))
583+
if(
584+
has_suffix(file, ".cpp") || has_suffix(file, ".CPP") ||
585+
#ifndef _WIN32
586+
has_suffix(file, ".C") ||
587+
#endif
588+
has_suffix(file, ".c++") || has_suffix(file, ".C++") ||
589+
has_suffix(file, ".cp") || has_suffix(file, ".CP") ||
590+
has_suffix(file, ".cc") || has_suffix(file, ".cxx"))
590591
{
591592
switch(config.cpp.cpp_standard)
592593
{

0 commit comments

Comments
 (0)