Debian Codegraph @

tests/roots/test-domain-cpp/operator-lookup.rst

raw
1 When doing name resolution there are 4 different idenOrOps:
2
3 - identifier
4 - built-in operator
5 - user-defined literal
6 - type conversion
7
8 .. cpp:function:: int g()
9 .. cpp:function:: int operator+(int, int)
10 .. cpp:function:: int operator""_lit()
11
12 .. cpp:class:: B
13
14 .. cpp:function:: operator int()
15
16 Functions that can't be found:
17
18 - :cpp:func:`int h()`
19 - :cpp:func:`int operator+(bool, bool)`
20 - :cpp:func:`int operator""_udl()`
21 - :cpp:func:`operator bool()`
22
23 Functions that should be found:
24
25 - :cpp:func:`int g()`
26 - :cpp:func:`int operator+(int, int)`
27 - :cpp:func:`int operator""_lit()`
28 - :cpp:func:`operator int()`