Coverage for hdl_registers/generator/c/reserved_keywords.py: 100%

1 statements  

« prev     ^ index     » next       coverage.py v7.6.8, created at 2024-12-01 20:50 +0000

1# -------------------------------------------------------------------------------------------------- 

2# Copyright (c) Lukas Vik. All rights reserved. 

3# 

4# This file is part of the hdl-registers project, an HDL register generator fast enough to run 

5# in real time. 

6# https://hdl-registers.com 

7# https://github.com/hdl-registers/hdl-registers 

8# -------------------------------------------------------------------------------------------------- 

9 

10# Reserved keywords in the C programming language. 

11# Should include everything up until C23. 

12# From https://en.cppreference.com/w/c/keyword 

13# Note that they shall all be lowercase here in this set. 

14RESERVED_C_KEYWORDS = { 

15 "alignas", 

16 "alignof", 

17 "auto", 

18 "bool", 

19 "break", 

20 "case", 

21 "char", 

22 "const", 

23 "constexpr", 

24 "continue", 

25 "default", 

26 "do", 

27 "double", 

28 "else", 

29 "enum", 

30 "extern", 

31 "false", 

32 "float", 

33 "for", 

34 "goto", 

35 "if", 

36 "inline", 

37 "int", 

38 "long", 

39 "nullptr", 

40 "register", 

41 "restrict", 

42 "return", 

43 "short", 

44 "signed", 

45 "sizeof", 

46 "static_assert", 

47 "static", 

48 "struct", 

49 "switch", 

50 "thread_local", 

51 "true", 

52 "typedef", 

53 "typeof_unqual", 

54 "typeof", 

55 "union", 

56 "unsigned", 

57 "void", 

58 "volatile", 

59 "while", 

60}