mehdi_amini added inline comments.
================
Comment at: include/clang/Basic/IdentifierTable.h:103
@@ -95,1 +102,3 @@
+ return getLength() == StrLen-1 &&
+ memcmp(getNameStart(), Str, StrLen-1) == 0;
}
----------------
Eugene.Zelenko wrote:
> memcpy result is three state, so applying Boolean operator is not correct.
What do you mean "applying Boolean operator is not correct"?
http://en.cppreference.com/w/cpp/language/implicit_conversion # Boolean
conversions
```The value zero (for integral, floating-point, and unscoped enumeration)
and the null pointer and the null pointer-to-member values become false. All
other values become true.```
Seems good to me?
================
Comment at: include/clang/Lex/PreprocessorOptions.h:22
@@ -23,2 +21,3 @@
namespace llvm {
+
class MemoryBuffer;
----------------
Eugene.Zelenko wrote:
> I wanted to make spacing consistent. Same in other places.
>
> Actually, Include What You Use recommended to include MemoryBuffer.h.
> MemoryBuffer is used in smart pointers, but I remember that I encountered
> problems in LLDB MSVC builds, where forward declaration was not enough for
> such usage.
I think in a recent review you mentioned "empty lines make code more readable
for large namespaces", which does not seem to be the case here?
Repository:
rL LLVM
https://reviews.llvm.org/D23595
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits