Browse Source

Partially handled MSVC system headers after VS 2015 Update 3.

The rest of the fix requires an update to Clang.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/661/head
Dimitar Dobrev 10 years ago
parent
commit
02c14e5e68
  1. 4
      src/CppParser/Parser.cpp

4
src/CppParser/Parser.cpp

@ -274,7 +274,7 @@ void Parser::SetupHeader()
args.push_back("-std=gnu++98"); args.push_back("-std=gnu++98");
break; break;
default: default:
args.push_back("-std=gnu++11"); args.push_back(Opts->MicrosoftMode ? "-std=gnu++14" : "-std=gnu++11");
break; break;
} }
args.push_back("-fno-rtti"); args.push_back("-fno-rtti");
@ -2649,7 +2649,7 @@ SourceLocationKind Parser::GetLocationKind(const clang::SourceLocation& Loc)
clang::SourceManager& SM = C->getSourceManager(); clang::SourceManager& SM = C->getSourceManager();
clang::PresumedLoc PLoc = SM.getPresumedLoc(Loc); clang::PresumedLoc PLoc = SM.getPresumedLoc(Loc);
if(PLoc.isInvalid()) if (PLoc.isInvalid())
return SourceLocationKind::Invalid; return SourceLocationKind::Invalid;
const char *FileName = PLoc.getFilename(); const char *FileName = PLoc.getFilename();

Loading…
Cancel
Save