[Bug c/98963] New: gcc/jit/libgccjit++.h: 20 * function could be const

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Wed Feb 3 21:40:38 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98963

            Bug ID: 98963
           Summary: gcc/jit/libgccjit++.h: 20 * function could be const
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 50123
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50123&action=edit
text file

trunk.git/gcc/jit/libgccjit++.h:372:10: style:inconclusive: Technically the
member function 'gccjit::function::dump
_to_dot' can be const. [functionConst]
trunk.git/gcc/jit/libgccjit++.h:376:11: style:inconclusive: Technically the
member function 'gccjit::function::new_
block' can be const. [functionConst]
trunk.git/gcc/jit/libgccjit++.h:377:11: style:inconclusive: Technically the
member function 'gccjit::function::new_
block' can be const. [functionConst]
trunk.git/gcc/jit/libgccjit++.h:379:12: style:inconclusive: Technically the
member function 'gccjit::function::new_
local' can be const. [functionConst]
trunk.git/gcc/jit/libgccjit++.h:383:12: style:inconclusive: Technically the
member function 'gccjit::function::get_
address' can be const. [functionConst]
trunk.git/gcc/jit/libgccjit++.h:408:10: style:inconclusive: Technically the
member function 'gccjit::block::add_eva
l' can be const. [functionConst]
trunk.git/gcc/jit/libgccjit++.h:411:10: style:inconclusive: Technically the
member function 'gccjit::block::add_ass
ignment' can be const. [functionConst]
trunk.git/gcc/jit/libgccjit++.h:415:10: style:inconclusive: Technically the
member function 'gccjit::block::add_ass
ignment_op' can be const. [functionConst]
trunk.git/gcc/jit/libgccjit++.h:437:10: style:inconclusive: Technically the
member function 'gccjit::block::add_com
ment' can be const. [functionConst]
trunk.git/gcc/jit/libgccjit++.h:440:10: style:inconclusive: Technically the
member function 'gccjit::block::end_wit
h_conditional' can be const. [functionConst]
trunk.git/gcc/jit/libgccjit++.h:445:10: style:inconclusive: Technically the
member function 'gccjit::block::end_wit
h_jump' can be const. [functionConst]
trunk.git/gcc/jit/libgccjit++.h:448:10: style:inconclusive: Technically the
member function 'gccjit::block::end_wit
h_return' can be const. [functionConst]
trunk.git/gcc/jit/libgccjit++.h:450:10: style:inconclusive: Technically the
member function 'gccjit::block::end_wit
h_return' can be const. [functionConst]
trunk.git/gcc/jit/libgccjit++.h:452:10: style:inconclusive: Technically the
member function 'gccjit::block::end_wit
h_switch' can be const. [functionConst]
trunk.git/gcc/jit/libgccjit++.h:457:18: style:inconclusive: Technically the
member function 'gccjit::block::add_ext
ended_asm' can be const. [functionConst]
trunk.git/gcc/jit/libgccjit++.h:459:18: style:inconclusive: Technically the
member function 'gccjit::block::end_wit
h_extended_asm_goto' can be const. [functionConst]
trunk.git/gcc/jit/libgccjit++.h:472:10: style:inconclusive: Technically the
member function 'gccjit::rvalue::get_ty
pe' can be const. [functionConst]
trunk.git/gcc/jit/libgccjit++.h:477:12: style:inconclusive: Technically the
member function 'gccjit::rvalue::derefe
rence_field' can be const. [functionConst]
trunk.git/gcc/jit/libgccjit++.h:480:12: style:inconclusive: Technically the
member function 'gccjit::rvalue::derefe
rence' can be const. [functionConst]
trunk.git/gcc/jit/libgccjit++.h:502:12: style:inconclusive: Technically the
member function 'gccjit::lvalue::set_in
itializer' can be const. [functionConst]

The attached diff seems to solve the problem. It builds ok.


More information about the Gcc-bugs mailing list