clang  10.0.0svn
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 
29  bool isCocoaObjectRef(QualType T);
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
Represents a function declaration or definition.
Definition: Decl.h:1784
A (possibly-)qualified type.
Definition: Type.h:643
bool isCocoaObjectRef(QualType T)
bool followsCreateRule(const FunctionDecl *FD)
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified...
Dataflow Directional Tag Classes.
bool isRefType(QualType RetTy, StringRef Prefix, StringRef Name=StringRef())