clang-tools  14.0.0git
Namespaces | Typedefs | Functions
FileExtensionsUtils.h File Reference
#include "clang/Basic/SourceLocation.h"
#include "clang/Basic/SourceManager.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/StringRef.h"
Include dependency graph for FileExtensionsUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

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

Typedefs

typedef llvm::SmallSet< llvm::StringRef, 5 > clang::tidy::utils::FileExtensionsSet
 

Functions

bool clang::tidy::utils::isExpansionLocInHeaderFile (SourceLocation Loc, const SourceManager &SM, const FileExtensionsSet &HeaderFileExtensions)
 Checks whether expansion location of Loc is in header file. More...
 
bool clang::tidy::utils::isPresumedLocInHeaderFile (SourceLocation Loc, SourceManager &SM, const FileExtensionsSet &HeaderFileExtensions)
 Checks whether presumed location of Loc is in header file. More...
 
bool clang::tidy::utils::isSpellingLocInHeaderFile (SourceLocation Loc, SourceManager &SM, const FileExtensionsSet &HeaderFileExtensions)
 Checks whether spelling location of Loc is in header file. More...
 
StringRef clang::tidy::utils::defaultHeaderFileExtensions ()
 Returns recommended default value for the list of header file extensions. More...
 
StringRef clang::tidy::utils::defaultImplementationFileExtensions ()
 Returns recommended default value for the list of implementation file extensions. More...
 
StringRef clang::tidy::utils::defaultFileExtensionDelimiters ()
 Returns recommended default value for the list of file extension delimiters. More...
 
bool clang::tidy::utils::parseFileExtensions (StringRef AllFileExtensions, FileExtensionsSet &FileExtensions, StringRef Delimiters)
 Parses header file extensions from a semicolon-separated list. More...
 
llvm::Optional< StringRef > clang::tidy::utils::getFileExtension (StringRef FileName, const FileExtensionsSet &FileExtensions)
 Decides whether a file has a header file extension. More...
 
bool clang::tidy::utils::isFileExtension (StringRef FileName, const FileExtensionsSet &FileExtensions)
 Decides whether a file has one of the specified file extensions. More...