clang  16.0.0git
Functions
DependencyScanningFilesystem.cpp File Reference
#include "clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/SmallVectorMemoryBuffer.h"
#include "llvm/Support/Threading.h"
Include dependency graph for DependencyScanningFilesystem.cpp:

Go to the source code of this file.

Functions

static bool shouldScanForDirectivesBasedOnExtension (StringRef Filename)
 Whitelist file extensions that should be minimized, treating no extension as a source file that should be minimized. More...
 
static bool shouldCacheStatFailures (StringRef Filename)
 

Function Documentation

◆ shouldCacheStatFailures()

static bool shouldCacheStatFailures ( StringRef  Filename)
static

◆ shouldScanForDirectivesBasedOnExtension()

static bool shouldScanForDirectivesBasedOnExtension ( StringRef  Filename)
static

Whitelist file extensions that should be minimized, treating no extension as a source file that should be minimized.

This is kinda hacky, it would be better if we knew what kind of file Clang was expecting instead.

Definition at line 166 of file DependencyScanningFilesystem.cpp.

References Filename.

Referenced by shouldCacheStatFailures().