//===-- dictionary.c - Generate fuzzing dictionary for clang --------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This binary emits a fuzzing dictionary describing strings that are // significant to the clang parser: keywords and other tokens. // // The dictionary can be used by a fuzzer to reach interesting parser states // much more quickly. // // The output is a single-file dictionary supported by libFuzzer and AFL: // https://llvm.org/docs/LibFuzzer.html#dictionaries // //===----------------------------------------------------------------------===// #include <stdio.h> static void emit(const char *Name, const char *Spelling) { … } int main(int argc, char **argv) { … }