- fix: should use c++ syntax to check ".h" files

This commit is contained in:
royqh1979@gmail.com 2021-10-09 18:04:31 +08:00
parent a16562f6ce
commit 88cd992159
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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();