CodeQL library for C/C++
Search

Module ExtractionErrors

Provides a common hierarchy of all types of errors that can occur during extraction.

Import path

import Diagnostics.ExtractionErrors

Imports

cpp

Provides classes and predicates for working with C/C++ code.

Classes

ExtractionError

Superclass for the extraction error hierarchy.

ExtractionRecoverableError

A recoverable extraction error. These are compiler errors from the frontend. Upon encountering one of these, we still continue extraction, but the database will be incomplete for that file.

ExtractionUnknownError

An unknown error happened during extraction. These are only displayed if we know that we encountered an error during extraction, but, for some reason, failed to emit a proper diagnostic with location information and error message.

ExtractionUnrecoverableError

An unrecoverable extraction error, where extraction was unable to finish. This can be caused by a multitude of reasons, for example: - hitting a frontend assertion - crashing due to dereferencing an invalid pointer - stack overflow - out of memory

ReportableError

An error that, if present, leads to a file being marked as non-successfully extracted.