summaryrefslogtreecommitdiffstats
path: root/tests/roots/test-domain-cpp/operator-lookup.rst
blob: 671b91b0f5e43385b4bf492b90e4461ca50d40e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
When doing name resolution there are 4 different idenOrOps:

- identifier
- built-in operator
- user-defined literal
- type conversion

.. cpp:function:: int g()
.. cpp:function:: int operator+(int, int)
.. cpp:function:: int operator""_lit()

.. cpp:class:: B

   .. cpp:function:: operator int()

   Functions that can't be found:

   - :cpp:func:`int h()`
   - :cpp:func:`int operator+(bool, bool)`
   - :cpp:func:`int operator""_udl()`
   - :cpp:func:`operator bool()`

   Functions that should be found:

   - :cpp:func:`int g()`
   - :cpp:func:`int operator+(int, int)`
   - :cpp:func:`int operator""_lit()`
   - :cpp:func:`operator int()`