Calculate sizeof Buffer instead of using a magic value.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Please use llvm::array_lengthof to compute the length of an array.
Alternatively, there's an overload of PP.getSpelling which takes a SmallVector and returns a StringRef as a parameter; you could change this code to use it, which would remove the need for the check.
Comment Actions
Thanks Eli! I do not have commit permissions, so someone else will have to commit this on my behalf.