- fix: should use c++ syntax to check ".h" files
This commit is contained in:
parent
a16562f6ce
commit
88cd992159
3
NEWS.md
3
NEWS.md
|
@ -1,3 +1,6 @@
|
|||
Version 0.6.3
|
||||
- fix: should use c++ syntax to check ".h" files
|
||||
|
||||
Version 0.6.2
|
||||
- fix: The Enter key in the numpad doesn't work
|
||||
- fix: The compiled executable not fully write to the disk before run it
|
||||
|
|
|
@ -27,7 +27,6 @@ bool StdinCompiler::prepareForCompile()
|
|||
mArguments += getCharsetArgument(pCharsetInfoManager->getDefaultSystemEncoding());
|
||||
switch(fileType) {
|
||||
case FileType::CSource:
|
||||
case FileType::CHeader:
|
||||
mArguments += " -x c - ";
|
||||
mArguments += getCCompileArguments(mOnlyCheckSyntax);
|
||||
mArguments += getCIncludeArguments();
|
||||
|
@ -37,6 +36,7 @@ bool StdinCompiler::prepareForCompile()
|
|||
break;
|
||||
case FileType::CppSource:
|
||||
case FileType::CppHeader:
|
||||
case FileType::CHeader:
|
||||
mArguments += " -x c++ - ";
|
||||
mArguments += getCppCompileArguments(mOnlyCheckSyntax);
|
||||
mArguments += getCppIncludeArguments();
|
||||
|
|
Loading…
Reference in New Issue