@ -85,7 +85,7 @@ LayoutField Parser::WalkVTablePointer(Class* Class,
@@ -85,7 +85,7 @@ LayoutField Parser::WalkVTablePointer(Class* Class,
{
LayoutField LayoutField ;
LayoutField . offset = Offset . getQuantity ( ) ;
LayoutField . n ame = prefix + " _ " + Class - > n ame;
LayoutField . N ame = prefix + " _ " + Class - > N ame;
LayoutField . qualifiedType = GetQualifiedType ( c - > getASTContext ( ) . VoidPtrTy ) ;
return LayoutField ;
}
@ -189,7 +189,7 @@ void Parser::ReadClassLayout(Class* Class, const clang::RecordDecl* RD,
@@ -189,7 +189,7 @@ void Parser::ReadClassLayout(Class* Class, const clang::RecordDecl* RD,
auto F = WalkFieldCXX ( Field , Parent ) ;
LayoutField LayoutField ;
LayoutField . offset = FieldOffset . getQuantity ( ) ;
LayoutField . n ame = F - > n ame;
LayoutField . N ame = F - > N ame;
LayoutField . qualifiedType = GetQualifiedType ( Field - > getType ( ) ) ;
LayoutField . fieldPtr = ( void * ) Field ;
Class - > layout - > Fields . push_back ( LayoutField ) ;
@ -285,9 +285,9 @@ void Parser::Setup(bool Compile)
@@ -285,9 +285,9 @@ void Parser::Setup(bool Compile)
auto & TO = Inv - > TargetOpts ;
if ( opts - > t argetTriple. empty ( ) )
opts - > t argetTriple = llvm : : sys : : getDefaultTargetTriple ( ) ;
TO - > Triple = llvm : : Triple : : normalize ( opts - > t argetTriple) ;
if ( opts - > T argetTriple. empty ( ) )
opts - > T argetTriple = llvm : : sys : : getDefaultTargetTriple ( ) ;
TO - > Triple = llvm : : Triple : : normalize ( opts - > T argetTriple) ;
if ( opts - > verbose )
printf ( " Target triple: %s \n " , TO - > Triple . c_str ( ) ) ;
@ -297,8 +297,8 @@ void Parser::Setup(bool Compile)
@@ -297,8 +297,8 @@ void Parser::Setup(bool Compile)
{
// We might have no target info due to an invalid user-provided triple.
// Try again with the default triple.
opts - > t argetTriple = llvm : : sys : : getDefaultTargetTriple ( ) ;
TO - > Triple = llvm : : Triple : : normalize ( opts - > t argetTriple) ;
opts - > T argetTriple = llvm : : sys : : getDefaultTargetTriple ( ) ;
TO - > Triple = llvm : : Triple : : normalize ( opts - > T argetTriple) ;
TI = TargetInfo : : CreateTargetInfo ( c - > getDiagnostics ( ) , TO ) ;
}
@ -1258,7 +1258,7 @@ Parser::WalkClassTemplateSpecialization(const clang::ClassTemplateSpecialization
@@ -1258,7 +1258,7 @@ Parser::WalkClassTemplateSpecialization(const clang::ClassTemplateSpecialization
auto NS = GetNamespace ( CTS ) ;
assert ( NS & & " Expected a valid namespace " ) ;
TS - > _namespace = NS ;
TS - > n ame = CTS - > getName ( ) . str ( ) ;
TS - > N ame = CTS - > getName ( ) . str ( ) ;
TS - > templatedDecl = CT ;
TS - > specializationKind = WalkTemplateSpecializationKind ( CTS - > getSpecializationKind ( ) ) ;
CT - > Specializations . push_back ( TS ) ;
@ -1313,7 +1313,7 @@ Parser::WalkClassTemplatePartialSpecialization(const clang::ClassTemplatePartial
@@ -1313,7 +1313,7 @@ Parser::WalkClassTemplatePartialSpecialization(const clang::ClassTemplatePartial
auto NS = GetNamespace ( CTS ) ;
assert ( NS & & " Expected a valid namespace " ) ;
TS - > _namespace = NS ;
TS - > n ame = CTS - > getName ( ) . str ( ) ;
TS - > N ame = CTS - > getName ( ) ;
TS - > templatedDecl = CT ;
TS - > specializationKind = WalkTemplateSpecializationKind ( CTS - > getSpecializationKind ( ) ) ;
CT - > Specializations . push_back ( TS ) ;
@ -1377,7 +1377,7 @@ ClassTemplate* Parser::WalkClassTemplate(const clang::ClassTemplateDecl* TD)
@@ -1377,7 +1377,7 @@ ClassTemplate* Parser::WalkClassTemplate(const clang::ClassTemplateDecl* TD)
CT = new ClassTemplate ( ) ;
HandleDeclaration ( TD , CT ) ;
CT - > n ame = GetDeclName ( TD ) ;
CT - > N ame = GetDeclName ( TD ) ;
CT - > _namespace = NS ;
NS - > Templates . push_back ( CT ) ;
@ -1425,7 +1425,7 @@ TypeTemplateParameter* Parser::WalkTypeTemplateParameter(const clang::TemplateTy
@@ -1425,7 +1425,7 @@ TypeTemplateParameter* Parser::WalkTypeTemplateParameter(const clang::TemplateTy
return TP ;
TP = new CppSharp : : CppParser : : TypeTemplateParameter ( ) ;
TP - > n ame = GetDeclName ( TTPD ) ;
TP - > N ame = GetDeclName ( TTPD ) ;
HandleDeclaration ( TTPD , TP ) ;
if ( TTPD - > hasDefaultArgument ( ) )
TP - > defaultArgument = GetQualifiedType ( TTPD - > getDefaultArgument ( ) ) ;
@ -1445,7 +1445,7 @@ NonTypeTemplateParameter* Parser::WalkNonTypeTemplateParameter(const clang::NonT
@@ -1445,7 +1445,7 @@ NonTypeTemplateParameter* Parser::WalkNonTypeTemplateParameter(const clang::NonT
return NTP ;
NTP = new CppSharp : : CppParser : : NonTypeTemplateParameter ( ) ;
NTP - > n ame = GetDeclName ( NTTPD ) ;
NTP - > N ame = GetDeclName ( NTTPD ) ;
HandleDeclaration ( NTTPD , NTP ) ;
if ( NTTPD - > hasDefaultArgument ( ) )
NTP - > defaultArgument = WalkExpressionObsolete ( NTTPD - > getDefaultArgument ( ) ) ;
@ -1606,7 +1606,7 @@ TypeAliasTemplate* Parser::WalkTypeAliasTemplate(
@@ -1606,7 +1606,7 @@ TypeAliasTemplate* Parser::WalkTypeAliasTemplate(
TA = new TypeAliasTemplate ( ) ;
HandleDeclaration ( TD , TA ) ;
TA - > n ame = GetDeclName ( TD ) ;
TA - > N ame = GetDeclName ( TD ) ;
NS - > Templates . push_back ( TA ) ;
TA - > TemplatedDecl = WalkDeclaration ( TD - > getTemplatedDecl ( ) ) ;
@ -1644,7 +1644,7 @@ FunctionTemplate* Parser::WalkFunctionTemplate(const clang::FunctionTemplateDecl
@@ -1644,7 +1644,7 @@ FunctionTemplate* Parser::WalkFunctionTemplate(const clang::FunctionTemplateDecl
FT = new FunctionTemplate ( ) ;
HandleDeclaration ( TD , FT ) ;
FT - > n ame = GetDeclName ( TD ) ;
FT - > N ame = GetDeclName ( TD ) ;
FT - > _namespace = NS ;
FT - > TemplatedDecl = F ;
FT - > Parameters = WalkTemplateParameterList ( TD - > getTemplateParameters ( ) ) ;
@ -1718,7 +1718,7 @@ VarTemplate* Parser::WalkVarTemplate(const clang::VarTemplateDecl* TD)
@@ -1718,7 +1718,7 @@ VarTemplate* Parser::WalkVarTemplate(const clang::VarTemplateDecl* TD)
VT = new VarTemplate ( ) ;
HandleDeclaration ( TD , VT ) ;
VT - > n ame = GetDeclName ( TD ) ;
VT - > N ame = GetDeclName ( TD ) ;
VT - > _namespace = NS ;
NS - > Templates . push_back ( VT ) ;
@ -1746,7 +1746,7 @@ Parser::WalkVarTemplateSpecialization(const clang::VarTemplateSpecializationDecl
@@ -1746,7 +1746,7 @@ Parser::WalkVarTemplateSpecialization(const clang::VarTemplateSpecializationDecl
auto NS = GetNamespace ( VTS ) ;
assert ( NS & & " Expected a valid namespace " ) ;
TS - > _namespace = NS ;
TS - > n ame = VTS - > getName ( ) . str ( ) ;
TS - > N ame = VTS - > getName ( ) ;
TS - > templatedDecl = VT ;
TS - > specializationKind = WalkTemplateSpecializationKind ( VTS - > getSpecializationKind ( ) ) ;
VT - > Specializations . push_back ( TS ) ;
@ -1786,7 +1786,7 @@ Parser::WalkVarTemplatePartialSpecialization(const clang::VarTemplatePartialSpec
@@ -1786,7 +1786,7 @@ Parser::WalkVarTemplatePartialSpecialization(const clang::VarTemplatePartialSpec
auto NS = GetNamespace ( VTS ) ;
assert ( NS & & " Expected a valid namespace " ) ;
TS - > _namespace = NS ;
TS - > n ame = VTS - > getName ( ) . str ( ) ;
TS - > N ame = VTS - > getName ( ) ;
TS - > templatedDecl = VT ;
TS - > specializationKind = WalkTemplateSpecializationKind ( VTS - > getSpecializationKind ( ) ) ;
VT - > Specializations . push_back ( TS ) ;
@ -1963,7 +1963,7 @@ Field* Parser::WalkFieldCXX(const clang::FieldDecl* FD, Class* Class)
@@ -1963,7 +1963,7 @@ Field* Parser::WalkFieldCXX(const clang::FieldDecl* FD, Class* Class)
HandleDeclaration ( FD , F ) ;
F - > _namespace = Class ;
F - > n ame = FD - > getName ( ) . str ( ) ;
F - > N ame = FD - > getName ( ) ;
auto TL = FD - > getTypeSourceInfo ( ) - > getTypeLoc ( ) ;
F - > qualifiedType = GetQualifiedType ( FD - > getType ( ) , & TL ) ;
F - > access = ConvertToAccess ( FD - > getAccess ( ) ) ;
@ -2589,7 +2589,7 @@ Type* Parser::WalkType(clang::QualType QualType, const clang::TypeLoc* TL,
@@ -2589,7 +2589,7 @@ Type* Parser::WalkType(clang::QualType QualType, const clang::TypeLoc* TL,
{
auto FA = new Parameter ( ) ;
auto Arg = FP - > getParamType ( i ) ;
FA - > n ame = " " ;
FA - > N ame = " " ;
FA - > qualifiedType = GetQualifiedType ( Arg ) ;
// In this case we have no valid value to use as a pointer so
@ -2724,7 +2724,7 @@ Type* Parser::WalkType(clang::QualType QualType, const clang::TypeLoc* TL,
@@ -2724,7 +2724,7 @@ Type* Parser::WalkType(clang::QualType QualType, const clang::TypeLoc* TL,
auto TPT = new CppSharp : : CppParser : : TemplateParameterType ( ) ;
if ( auto Ident = TP - > getIdentifier ( ) )
TPT - > parameter - > n ame = Ident - > getName ( ) . str ( ) ;
TPT - > parameter - > N ame = Ident - > getName ( ) ;
TypeLoc UTL , ETL , ITL , Next ;
@ -2825,7 +2825,7 @@ Type* Parser::WalkType(clang::QualType QualType, const clang::TypeLoc* TL,
@@ -2825,7 +2825,7 @@ Type* Parser::WalkType(clang::QualType QualType, const clang::TypeLoc* TL,
}
default : break ;
}
DNT - > i dentifier = DN - > getIdentifier ( ) - > getName ( ) . str ( ) ;
DNT - > I dentifier = DN - > getIdentifier ( ) - > getName ( ) ;
Ty = DNT ;
break ;
@ -2976,7 +2976,7 @@ Enumeration* Parser::WalkEnum(const clang::EnumDecl* ED)
@@ -2976,7 +2976,7 @@ Enumeration* Parser::WalkEnum(const clang::EnumDecl* ED)
else
{
E = new Enumeration ( ) ;
E - > n ame = Name ;
E - > N ame = Name ;
E - > _namespace = NS ;
NS - > Enums . push_back ( E ) ;
}
@ -3013,7 +3013,7 @@ Enumeration::Item* Parser::WalkEnumItem(clang::EnumConstantDecl* ECD)
@@ -3013,7 +3013,7 @@ Enumeration::Item* Parser::WalkEnumItem(clang::EnumConstantDecl* ECD)
auto EnumItem = new Enumeration : : Item ( ) ;
HandleDeclaration ( ECD , EnumItem ) ;
EnumItem - > n ame = ECD - > getNameAsString ( ) ;
EnumItem - > N ame = ECD - > getNameAsString ( ) ;
auto Value = ECD - > getInitVal ( ) ;
EnumItem - > value = Value . isSigned ( ) ? Value . getSExtValue ( )
: Value . getZExtValue ( ) ;
@ -3021,7 +3021,7 @@ Enumeration::Item* Parser::WalkEnumItem(clang::EnumConstantDecl* ECD)
@@ -3021,7 +3021,7 @@ Enumeration::Item* Parser::WalkEnumItem(clang::EnumConstantDecl* ECD)
std : : string Text ;
if ( GetDeclText ( ECD - > getSourceRange ( ) , Text ) )
EnumItem - > e xpression = Text ;
EnumItem - > E xpression = Text ;
return EnumItem ;
}
@ -3153,7 +3153,7 @@ Parameter* Parser::WalkParameter(const clang::ParmVarDecl* PVD,
@@ -3153,7 +3153,7 @@ Parameter* Parser::WalkParameter(const clang::ParmVarDecl* PVD,
return P ;
P = new Parameter ( ) ;
P - > n ame = PVD - > getNameAsString ( ) ;
P - > N ame = PVD - > getNameAsString ( ) ;
TypeLoc PTL ;
if ( auto TSI = PVD - > getTypeSourceInfo ( ) )
@ -3188,16 +3188,16 @@ Parameter* Parser::WalkParameter(const clang::ParmVarDecl* PVD,
@@ -3188,16 +3188,16 @@ Parameter* Parser::WalkParameter(const clang::ParmVarDecl* PVD,
void Parser : : SetBody ( const clang : : FunctionDecl * FD , Function * F )
{
F - > b ody = GetFunctionBody ( FD ) ;
F - > B ody = GetFunctionBody ( FD ) ;
F - > isInline = FD - > isInlined ( ) ;
if ( ! F - > b ody. empty ( ) & & F - > isInline )
if ( ! F - > B ody. empty ( ) & & F - > isInline )
return ;
for ( const auto & R : FD - > redecls ( ) )
{
if ( F - > b ody. empty ( ) )
F - > b ody = GetFunctionBody ( R ) ;
if ( F - > B ody. empty ( ) )
F - > B ody = GetFunctionBody ( R ) ;
F - > isInline | = R - > isInlined ( ) ;
if ( ! F - > b ody. empty ( ) & & F - > isInline )
if ( ! F - > B ody. empty ( ) & & F - > isInline )
break ;
}
}
@ -3293,7 +3293,7 @@ void Parser::WalkFunction(const clang::FunctionDecl* FD, Function* F)
@@ -3293,7 +3293,7 @@ void Parser::WalkFunction(const clang::FunctionDecl* FD, Function* F)
auto NS = GetNamespace ( FD ) ;
assert ( NS & & " Expected a valid namespace " ) ;
F - > n ame = FD - > getNameAsString ( ) ;
F - > N ame = FD - > getNameAsString ( ) ;
F - > _namespace = NS ;
F - > isConstExpr = FD - > isConstexpr ( ) ;
F - > isVariadic = FD - > isVariadic ( ) ;
@ -3338,10 +3338,10 @@ void Parser::WalkFunction(const clang::FunctionDecl* FD, Function* F)
@@ -3338,10 +3338,10 @@ void Parser::WalkFunction(const clang::FunctionDecl* FD, Function* F)
F - > returnType = GetQualifiedType ( ReturnType , & RTL ) ;
const auto & Mangled = GetDeclMangledName ( FD ) ;
F - > m angled = Mangled ;
F - > M angled = Mangled ;
const auto & Body = GetFunctionBody ( FD ) ;
F - > b ody = Body ;
F - > B ody = Body ;
clang : : SourceLocation ParamStartLoc = FD - > getBeginLoc ( ) ;
clang : : SourceLocation ResultLoc ;
@ -3371,7 +3371,7 @@ void Parser::WalkFunction(const clang::FunctionDecl* FD, Function* F)
@@ -3371,7 +3371,7 @@ void Parser::WalkFunction(const clang::FunctionDecl* FD, Function* F)
std : : string Sig ;
if ( GetDeclText ( Range , Sig ) )
F - > s ignature = Sig ;
F - > S ignature = Sig ;
for ( auto VD : FD - > parameters ( ) )
{
@ -3501,7 +3501,7 @@ void Parser::WalkVariable(const clang::VarDecl* VD, Variable* Var)
@@ -3501,7 +3501,7 @@ void Parser::WalkVariable(const clang::VarDecl* VD, Variable* Var)
HandleDeclaration ( VD , Var ) ;
Var - > isConstExpr = VD - > isConstexpr ( ) ;
Var - > n ame = VD - > getName ( ) . str ( ) ;
Var - > N ame = VD - > getName ( ) ;
Var - > access = ConvertToAccess ( VD - > getAccess ( ) ) ;
auto Init = VD - > getAnyInitializer ( ) ;
@ -3512,7 +3512,7 @@ void Parser::WalkVariable(const clang::VarDecl* VD, Variable* Var)
@@ -3512,7 +3512,7 @@ void Parser::WalkVariable(const clang::VarDecl* VD, Variable* Var)
Var - > qualifiedType = GetQualifiedType ( VD - > getType ( ) , & TL ) ;
auto Mangled = GetDeclMangledName ( VD ) ;
Var - > m angled = Mangled ;
Var - > M angled = Mangled ;
}
Variable * Parser : : WalkVariable ( const clang : : VarDecl * VD )
@ -3615,7 +3615,7 @@ PreprocessedEntity* Parser::WalkPreprocessedEntity(
@@ -3615,7 +3615,7 @@ PreprocessedEntity* Parser::WalkPreprocessedEntity(
std : : string Text ;
GetDeclText ( PPEntity - > getSourceRange ( ) , Text ) ;
static_cast < MacroExpansion * > ( Entity ) - > t ext = Text ;
static_cast < MacroExpansion * > ( Entity ) - > T ext = Text ;
break ;
}
case clang : : PreprocessedEntity : : MacroDefinitionKind :
@ -3659,8 +3659,8 @@ PreprocessedEntity* Parser::WalkPreprocessedEntity(
@@ -3659,8 +3659,8 @@ PreprocessedEntity* Parser::WalkPreprocessedEntity(
Definition - > lineNumberEnd = SM . getExpansionLineNumber ( MD - > getLocation ( ) ) ;
Entity = Definition ;
Definition - > n ame = II - > getName ( ) . trim ( ) . str ( ) ;
Definition - > e xpression = Expression . trim ( ) . str ( ) ;
Definition - > N ame = II - > getName ( ) . trim ( ) ;
Definition - > E xpression = Expression . trim ( ) ;
}
case clang : : PreprocessedEntity : : InclusionDirectiveKind :
// nothing to be done for InclusionDirectiveKind
@ -3710,7 +3710,7 @@ AST::ExpressionObsolete* Parser::WalkExpressionObsolete(const clang::Expr* Expr)
@@ -3710,7 +3710,7 @@ AST::ExpressionObsolete* Parser::WalkExpressionObsolete(const clang::Expr* Expr)
auto BinaryOperator = cast < clang : : BinaryOperator > ( Expr ) ;
return new AST : : BinaryOperatorObsolete ( GetStringFromStatement ( Expr ) ,
WalkExpressionObsolete ( BinaryOperator - > getLHS ( ) ) , WalkExpressionObsolete ( BinaryOperator - > getRHS ( ) ) ,
BinaryOperator - > getOpcodeStr ( ) . str ( ) ) ;
BinaryOperator - > getOpcodeStr ( ) . str ( ) . c_str ( ) ) ;
}
case clang : : Stmt : : CallExprClass :
{
@ -3930,7 +3930,7 @@ void Parser::HandleOriginalText(const clang::Decl* D, Declaration* Decl)
@@ -3930,7 +3930,7 @@ void Parser::HandleOriginalText(const clang::Decl* D, Declaration* Decl)
auto DeclText = clang : : Lexer : : getSourceText ( Range , SM , LangOpts , & Invalid ) ;
if ( ! Invalid )
Decl - > d ebugText = DeclText . str ( ) ;
Decl - > D ebugText = DeclText ;
}
void Parser : : HandleDeclaration ( const clang : : Decl * D , Declaration * Decl )
@ -4339,8 +4339,8 @@ void Parser::HandleDiagnostics(ParserResult* res)
@@ -4339,8 +4339,8 @@ void Parser::HandleDiagnostics(ParserResult* res)
auto FileName = Source . getFilename ( Source . getFileLoc ( Diag . Location ) ) ;
auto PDiag = ParserDiagnostic ( ) ;
PDiag . f ileName = FileName . str ( ) ;
PDiag . m essage = Diag . Message . str ( ) . str ( ) ;
PDiag . F ileName = FileName . str ( ) ;
PDiag . M essage = Diag . Message . str ( ) ;
PDiag . lineNumber = 0 ;
PDiag . columnNumber = 0 ;
@ -4510,7 +4510,7 @@ ParserResultKind Parser::ParseArchive(const std::string& File,
@@ -4510,7 +4510,7 @@ ParserResultKind Parser::ParseArchive(const std::string& File,
std : : vector < CppSharp : : CppParser : : NativeLibrary * > & NativeLibs )
{
auto NativeLib = new NativeLibrary ( ) ;
NativeLib - > f ileName = File ;
NativeLib - > F ileName = File ;
for ( const auto & Symbol : Archive - > symbols ( ) )
{
@ -4547,7 +4547,7 @@ ParserResultKind Parser::ParseSharedLib(const std::string& File,
@@ -4547,7 +4547,7 @@ ParserResultKind Parser::ParseSharedLib(const std::string& File,
std : : vector < CppSharp : : CppParser : : NativeLibrary * > & NativeLibs )
{
auto NativeLib = new NativeLibrary ( ) ;
NativeLib - > f ileName = File ;
NativeLib - > F ileName = File ;
NativeLib - > archType = ConvertArchType ( ObjectFile - > getArch ( ) ) ;
NativeLibs . push_back ( NativeLib ) ;
@ -4645,7 +4645,7 @@ ParserResultKind Parser::ReadSymbols(llvm::StringRef File,
@@ -4645,7 +4645,7 @@ ParserResultKind Parser::ReadSymbols(llvm::StringRef File,
{
auto LibName = File ;
NativeLib = new NativeLibrary ( ) ;
NativeLib - > f ileName = LibName . str ( ) ;
NativeLib - > F ileName = LibName ;
for ( auto it = Begin ; it ! = End ; + + it )
{
@ -4714,8 +4714,8 @@ ParserResult* Parser::ParseLibrary(const CppLinkerOptions* Opts)
@@ -4714,8 +4714,8 @@ ParserResult* Parser::ParseLibrary(const CppLinkerOptions* Opts)
{
auto ErrMsg = llvm : : toString ( BinaryOrErr . takeError ( ) ) ;
auto Diag = ParserDiagnostic ( ) ;
Diag . f ileName = FileEntry ;
Diag . m essage = ErrMsg ;
Diag . F ileName = FileEntry ;
Diag . M essage = ErrMsg ;
Diag . level = ParserDiagnosticLevel : : Error ;
res - > Diagnostics . push_back ( Diag ) ;
@ -4743,7 +4743,7 @@ ParserResult* Parser::ParseLibrary(const CppLinkerOptions* Opts)
@@ -4743,7 +4743,7 @@ ParserResult* Parser::ParseLibrary(const CppLinkerOptions* Opts)
return res ;
}
ParserResult * Parser : : Build ( const CppLinkerOptions * LinkerOptions , const std : : string & File , bool Last )
ParserResult * Parser : : Build ( const CppLinkerOptions * LinkerOptions , const char * File , bool Last )
{
ParserResult * error = Compile ( File ) ;
if ( error )
@ -4806,7 +4806,7 @@ ParserResult* ClangParser::ParseLibrary(CppLinkerOptions* Opts)
@@ -4806,7 +4806,7 @@ ParserResult* ClangParser::ParseLibrary(CppLinkerOptions* Opts)
}
ParserResult * ClangParser : : Build ( CppParserOptions * Opts ,
const CppLinkerOptions * LinkerOptions , const std : : string & File , bool Last )
const CppLinkerOptions * LinkerOptions , const char * File , bool Last )
{
if ( ! Opts )
return 0 ;
@ -4816,7 +4816,7 @@ ParserResult* ClangParser::Build(CppParserOptions* Opts,
@@ -4816,7 +4816,7 @@ ParserResult* ClangParser::Build(CppParserOptions* Opts,
}
ParserResult * ClangParser : : Compile ( CppParserOptions * Opts ,
const std : : string & File )
const char * File )
{
if ( ! Opts )
return 0 ;
@ -4826,7 +4826,7 @@ ParserResult* ClangParser::Compile(CppParserOptions* Opts,
@@ -4826,7 +4826,7 @@ ParserResult* ClangParser::Compile(CppParserOptions* Opts,
}
ParserResult * ClangParser : : Link ( CppParserOptions * Opts ,
const CppLinkerOptions * LinkerOptions , const std : : string & File , bool Last )
const CppLinkerOptions * LinkerOptions , const char * File , bool Last )
{
if ( ! Opts )
return 0 ;
@ -4848,7 +4848,7 @@ ParserResult* ClangParser::Link(CppParserOptions* Opts,
@@ -4848,7 +4848,7 @@ ParserResult* ClangParser::Link(CppParserOptions* Opts,
return res ;
}
ParserResult * Parser : : Compile ( const std : : string & File )
ParserResult * Parser : : Compile ( const char * File )
{
llvm : : InitializeAllAsmPrinters ( ) ;
llvm : : StringRef Stem = llvm : : sys : : path : : stem ( File ) ;