[clang] [AST] Use explicit type erasure in TypeSourceInfo constructor (PR #68435)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 6 11:06:34 PDT 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 7f9a50ff0628e80743e5f4048274b5783f47a5cc 753c2e0ad0c15d0af14368c574b3fa53d70416f9 -- clang/include/clang/AST/TypeLoc.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/include/clang/AST/TypeLoc.h b/clang/include/clang/AST/TypeLoc.h
index e38895099c9e..c8b2262ba519 100644
--- a/clang/include/clang/AST/TypeLoc.h
+++ b/clang/include/clang/AST/TypeLoc.h
@@ -243,7 +243,7 @@ private:
inline TypeSourceInfo::TypeSourceInfo(QualType ty, size_t DataSize) : Ty(ty) {
// Init data attached to the object. See getTypeLoc.
- memset(const_cast<void*>(static_cast<const void*>(this + 1)), 0, DataSize);
+ memset(const_cast<void *>(static_cast<const void *>(this + 1)), 0, DataSize);
}
/// Return the TypeLoc for a type source info.
``````````
</details>
https://github.com/llvm/llvm-project/pull/68435
More information about the cfe-commits
mailing list