================
@@ -148,21 +150,19 @@ QualType inferPossibleTypeFromVarInitSizeofExpr(const
Expr *E) {
///
/// MyType *x = (MyType *)malloc(4096); // infers 'MyType'
///
-QualType inferPossibleTypeFromCastExpr(const CallExpr *CallE,
- const CastExpr *CastE) {
+static QualType inferPossibleTypeFromCastExpr(const CallExpr *CallE,
+ const CastExpr *CastE) {
if (!CastE)
return QualType();
QualType PtrType = CastE->getType();
if (PtrType->isPointerType())
return PtrType->getPointeeType();
return QualType();
}
-} // anonymous namespace
-
-namespace infer_alloc {
-QualType inferPossibleType(const CallExpr *E, const ASTContext &Ctx,
- const CastExpr *CastE) {
+QualType clang::infer_alloc::inferPossibleType(const CallExpr *E,
----------------
fmayer wrote:
Why do you use the namespace, but then fully qualify?
https://github.com/llvm/llvm-project/pull/163636
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits