[dylan:clang/test/Parser] admin% ../../../../Debug/bin/clang -parse-ast-check typeof.c
Warnings expected but not seen:
Line 21: incompatible types assigning 'typeof(*pi) const' to 'int *'
Warnings seen but not expected:
Line 21: incompatible types assigning 'typeof(*pi) const' to 'int *'
Also corrected a typo from my previous commit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40832
91177308-0d34-0410-b5e6-
96231b3b80d8
InnerString = ' ' + InnerString;
std::ostringstream s;
getUnderlyingExpr()->print(s);
- InnerString = "typeof(" + s.str() + ") " + InnerString;
+ InnerString = "typeof(" + s.str() + ")" + InnerString;
}
void TypeOfType::getAsStringInternal(std::string &InnerString) const {
// sizeof(blockvardecl); // type is "int [5]" (cannot convert to "int *")
// }
//
- // If we converted blockvardecl (at this level) is would be be incorrect
+ // If we converted blockvardecl (at this level) it would be be incorrect
// for the sizeof and address of (&) operators (see C99 6.3.2.1p[2-4]).
// This doesn't matter for parmvardecl, since arrays are always passed by
// reference (i.e. the [5] on parmvardecl is superfluous).