EntryPoints-EntriesByKeyword

Consider routines having special tokens/keywords in their declaration as externally called entry points

Required inputs: IR

This rule identifies additional entry points based on tokens preceding the declaration.

This rule typically is used to easily add entry points where your code uses a macro or compiler-specific keyword/attribute in front of the function declaration to denote an IRQ handler or similar. For example:

IRQ_HANDLER void my_interrupt()

void IRQ_HANDLER my_other_interrupt()

Cases like these would be found by this rule when you add IRQ_HANDLER to the keywords.

Configuration of entry points is required for dead code analysis and static semantic analysis.

Possible Messages

This rule has no predefined messages.

Options

The following places define options that affect this rule: Analysis-GlobalOptions

keywords

keywords : set[bauhaus.analysis.config.GlobPattern] = set()

List the name(s) of the interrupt keyword(s) of your compiler to automatically consider functions marked as interrupts as entry points. This supports globbing patterns.