search for: lexpositive

Displaying 2 results from an estimated 2 matches for "lexpositive".

2007 Dec 15
4
[LLVMdev] fix warning with newer g++ compilers
...OrNegative()': /Volumes/mrs5/net/llvm/llvm/llvm/lib/AsmParser/LLLexer.cpp:720: warning: suggest a space before ';' or explicit braces around empty body in 'for' statement /Volumes/mrs5/net/llvm/llvm/llvm/lib/AsmParser/LLLexer.cpp: In member function 'int llvm::LLLexer::LexPositive()': /Volumes/mrs5/net/llvm/llvm/llvm/lib/AsmParser/LLLexer.cpp:789: warning: suggest a space before ';' or explicit braces around empty body in 'for' statement The usual style is to put a space before the ;, or put the ; on a new line to visually separate the ; from the f...
2007 Dec 15
2
[LLVMdev] fix warning with newer g++ compilers
...mp;& isdigit(CurPtr[2]))) { CurPtr += 2; while (isdigit(CurPtr[0])) ++CurPtr; } } - + llvmAsmlval.FPVal = new APFloat(atof(TokStart)); - return FPVAL; + return FPVAL; } /// FPConstant [-+]?[0-9]+[.][0-9]*([eE][-+]?[0-9]+)? @@ -784,31 +787,32 @@ int LLLexer::LexPositive() { // label. if (!isdigit(CurPtr[0])) return CurPtr[-1]; - + // Skip digits. - for (++CurPtr; isdigit(CurPtr[0]); ++CurPtr); + for (++CurPtr; isdigit(CurPtr[0]); ++CurPtr) + ; // At this point, we need a '.'. if (CurPtr[0] != '.') { CurPtr = TokSta...