clang  19.0.0git
CocoaConventions.h
Go to the documentation of this file.
1 //===- CocoaConventions.h - Special handling of Cocoa conventions -*- C++ -*--//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file implements cocoa naming convention analysis.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_CLANG_ANALYSIS_DOMAINSPECIFIC_COCOACONVENTIONS_H
14 #define LLVM_CLANG_ANALYSIS_DOMAINSPECIFIC_COCOACONVENTIONS_H
15 
16 #include "clang/Basic/LLVM.h"
17 #include "llvm/ADT/StringRef.h"
18 
19 namespace clang {
20 class FunctionDecl;
21 class QualType;
22 
23 namespace ento {
24 namespace cocoa {
25 
26  bool isRefType(QualType RetTy, StringRef Prefix,
27  StringRef Name = StringRef());
28 
30 
31 }
32 
33 namespace coreFoundation {
34  bool isCFObjectRef(QualType T);
35 
36  bool followsCreateRule(const FunctionDecl *FD);
37 }
38 
39 }} // end: "clang:ento"
40 
41 #endif
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified.
Represents a function declaration or definition.
Definition: Decl.h:1972
A (possibly-)qualified type.
Definition: Type.h:940
bool isCocoaObjectRef(QualType T)
bool isRefType(QualType RetTy, StringRef Prefix, StringRef Name=StringRef())
bool followsCreateRule(const FunctionDecl *FD)
The JSON file list parser is used to communicate input to InstallAPI.
const FunctionProtoType * T