|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Fuzz tokenization, lookahead, progress and source spans. More...
#include <algorithm>#include <cstddef>#include <cstdint>#include <cstdlib>#include <string>#include <Compiler_Lexer.H>Go to the source code of this file.
Functions | |
| int | LLVMFuzzerTestOneInput (const uint8_t *data, size_t size) |
| Tokenize arbitrary source text and validate the lexer contract. | |
Fuzz tokenization, lookahead, progress and source spans.
Definition in file fuzz_compiler_lexer.cc.
| int LLVMFuzzerTestOneInput | ( | const uint8_t * | data, |
| size_t | size | ||
| ) |
Tokenize arbitrary source text and validate the lexer contract.
| data | Fuzzer-generated options byte followed by source text. |
| size | Number of available bytes. |
Definition at line 50 of file fuzz_compiler_lexer.cc.
References Aleph::Source_Manager::add_virtual_file(), Aleph::Compiler_Lexer::current_offset(), Aleph::Compiler_Lexer_Options::keep_comments, Aleph::Compiler_Lexer::next(), options, Aleph::Compiler_Lexer::peek(), and Aleph::size().