[llvm-bugs] [Bug 37928] New: Missing space when using macro after function signature
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jun 25 11:10:55 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37928
Bug ID: 37928
Summary: Missing space when using macro after function
signature
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: thomasanderson at google.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Formatting this code (from Chromium's
base/allocator/allocator_shim_override_cpp_symbols.h) removes the space before
__THROW on operator delete.
--------------------------------------------------------------------------------
SHIM_ALWAYS_EXPORT void operator delete(void* p, size_t) __THROW {
ShimCppDelete(p);
}
SHIM_ALWAYS_EXPORT void operator delete[](void* p, size_t) __THROW {
ShimCppDelete(p);
}
--------------------------------------------------------------------------------
So now it looks like:
--------------------------------------------------------------------------------
SHIM_ALWAYS_EXPORT void operator delete(void* p, size_t)__THROW {
ShimCppDelete(p);
}
SHIM_ALWAYS_EXPORT void operator delete[](void* p, size_t) __THROW {
ShimCppDelete(p);
}
--------------------------------------------------------------------------------
operator delete[] is fine, however.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180625/65b3db7e/attachment.html>
More information about the llvm-bugs
mailing list