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 19namespace clang { 20class FunctionDecl; 21class QualType; 22 23namespace ento { 24namespace cocoa { 25 26 bool isRefType(QualType RetTy, StringRef Prefix, 27 StringRef Name = StringRef()); 28 29 bool isCocoaObjectRef(QualType T); 30 31} 32 33namespace coreFoundation { 34 bool isCFObjectRef(QualType T); 35 36 bool followsCreateRule(const FunctionDecl *FD); 37} 38 39}} // end: "clang:ento" 40 41#endif 42