mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
ide: CppParser fixed to compile in CLANG11
git-svn-id: svn://ultimatepp.org/upp/trunk@8434 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
30412847e4
commit
22af95ab6a
4 changed files with 4 additions and 4 deletions
|
|
@ -68,7 +68,7 @@ String CppMacro::Expand(const Vector<String>& p, const Vector<String>& ep) const
|
|||
variadic = true;
|
||||
pp.Trim(pp.GetCount() - 1);
|
||||
}
|
||||
Index<String> param(pick(Split(pp, ',')));
|
||||
Index<String> param(Split(pp, ','));
|
||||
static String VA_ARGS("__VA_ARGS__"); // static - Speed optimization
|
||||
while(*s) {
|
||||
if(IsAlpha(*s) || *s == '_') {
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ bool IsHFile(const String& path)
|
|||
|
||||
void SetSpaces(String& l, int pos, int count)
|
||||
{
|
||||
StringBuffer s = l;
|
||||
StringBuffer s(l);
|
||||
memset(~s + pos, ' ', count);
|
||||
l = s;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -208,7 +208,7 @@ bool CheckFile(const SourceFileInfo& f, const String& path)
|
|||
return f.included_id_macros == included_id_macros;
|
||||
}
|
||||
|
||||
void ParseFiles(Progress& pi, const Index<int> parse_file)
|
||||
void ParseFiles(Progress& pi, const Index<int>& parse_file)
|
||||
{
|
||||
pi.SetTotal(parse_file.GetCount());
|
||||
pi.SetPos(0);
|
||||
|
|
|
|||
|
|
@ -108,5 +108,5 @@ Vector<String> PreprocessSchFile(const char *fn)
|
|||
}
|
||||
catch(CParser::Error)
|
||||
{}
|
||||
return Vector<String>() << r << rr;
|
||||
return pick(Vector<String>() << r << rr);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue