clang-tools 20.0.0git
Namespaces | Functions
TypeMismatchCheck.cpp File Reference
#include "TypeMismatchCheck.h"
#include "clang/Lex/Lexer.h"
#include "clang/Tooling/FixIt.h"
#include "llvm/ADT/StringSet.h"
#include <map>

Go to the source code of this file.

Namespaces

namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
namespace  clang::tidy
 
namespace  clang::tidy::mpi
 

Functions

static bool clang::tidy::mpi::isMPITypeMatching (const std::multimap< BuiltinType::Kind, StringRef > &MultiMap, const BuiltinType::Kind Kind, StringRef MPIDatatype)
 Check if a BuiltinType::Kind matches the MPI datatype.
 
static bool clang::tidy::mpi::isStandardMPIDatatype (StringRef MPIDatatype)
 Check if the MPI datatype is a standard type.
 
static bool clang::tidy::mpi::isBuiltinTypeMatching (const BuiltinType *Builtin, std::string &BufferTypeName, StringRef MPIDatatype, const LangOptions &LO)
 Check if a BuiltinType matches the MPI datatype.
 
static bool clang::tidy::mpi::isCComplexTypeMatching (const ComplexType *const Complex, std::string &BufferTypeName, StringRef MPIDatatype, const LangOptions &LO)
 Check if a complex float/double/long double buffer type matches the MPI datatype.
 
static bool clang::tidy::mpi::isCXXComplexTypeMatching (const TemplateSpecializationType *const Template, std::string &BufferTypeName, StringRef MPIDatatype, const LangOptions &LO)
 Check if a complex<float/double/long double> templated buffer type matches the MPI datatype.
 
static bool clang::tidy::mpi::isTypedefTypeMatching (const TypedefType *const Typedef, std::string &BufferTypeName, StringRef MPIDatatype)
 Check if a fixed size width buffer type matches the MPI datatype.
 
static const Typeclang::tidy::mpi::argumentType (const CallExpr *const CE, const size_t Idx)
 Get the unqualified, dereferenced type of an argument.