[PATCH] D46084: [Fixed Point Arithmetic] Addition of the Fixed Point _Accum type

Leonard Chan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 22 09:33:12 PDT 2018


leonardchan marked 2 inline comments as done.
leonardchan added inline comments.


================
Comment at: lib/Index/USRGeneration.cpp:731
+
+      if (c == '~') {
+        switch (BT->getKind()) {
----------------
jakehehrlich wrote:
> You can make the 'c' a Twine instead. That will let you inline these in their respective locations as `  c = "~UA" ` for instance.
So Twine also isn't assignable. If I still want to keep the pattern of assigning to a temporary variable, I could instead just make `c` a string.


Repository:
  rC Clang

https://reviews.llvm.org/D46084





More information about the cfe-commits mailing list