Cppcheck
Functions | Variables
path.cpp File Reference
#include "path.h"
#include "utils.h"
#include <algorithm>
#include <cstdlib>
#include <sys/stat.h>
#include <unordered_set>
#include <utility>
#include <simplecpp.h>
#include <sys/types.h>
#include <unistd.h>

Go to the source code of this file.

Functions

static constexpr bool caseInsensitiveFilesystem ()
 Is the filesystem case insensitive? More...
 
static mode_t file_type (const std::string &path)
 

Variables

static const std::unordered_set< std::string > cpp_src_exts
 
static const std::unordered_set< std::string > c_src_exts
 
static const std::unordered_set< std::string > header_exts
 

Function Documentation

◆ caseInsensitiveFilesystem()

static constexpr bool caseInsensitiveFilesystem ( )
staticconstexpr

Is the filesystem case insensitive?

Definition at line 50 of file path.cpp.

Referenced by Path::getFilenameExtension(), Path::identify(), and Path::sameFileName().

◆ file_type()

static mode_t file_type ( const std::string &  path)
static

Definition at line 321 of file path.cpp.

Referenced by Path::isDirectory(), and Path::isFile().

Variable Documentation

◆ c_src_exts

const std::unordered_set<std::string> c_src_exts
static
Initial value:
= {
".c", ".cl"
}

Definition at line 202 of file path.cpp.

Referenced by Path::identify().

◆ cpp_src_exts

const std::unordered_set<std::string> cpp_src_exts
static
Initial value:
= {
".cpp", ".cxx", ".cc", ".c++", ".tpp", ".txx", ".ipp", ".ixx"
}

Definition at line 198 of file path.cpp.

Referenced by Path::identify().

◆ header_exts

const std::unordered_set<std::string> header_exts
static
Initial value:
= {
".h", ".hpp", ".h++", ".hxx", ".hh"
}

Definition at line 206 of file path.cpp.

Referenced by Path::identify().