Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClangFunctionDifferenceBear's options show function addresses #559

Open
adtac opened this issue Jun 27, 2016 · 5 comments · May be fixed by #2256
Open

ClangFunctionDifferenceBear's options show function addresses #559

adtac opened this issue Jun 27, 2016 · 5 comments · May be fixed by #2256

Comments

@adtac
Copy link
Member

adtac commented Jun 27, 2016

Try coala --show-bears --filter-by-language C --show-details and see ClangFunctionDifferenceBear's entry.

@gitmate-bot
Copy link
Collaborator

Thanks for reporting this issue!

Your aid is required, fellow coalaian. Help us triage and solving this issue!

CC @sils1297, @AbdealiJK

@adtac
Copy link
Member Author

adtac commented Jun 27, 2016

Here's what I get for reference:

ClangFunctionDifferenceBear
  Retrieves similarities for code clone detection. Those can be reused in another bear to produce results.
  Postprocessing may be done because small functions are less likely to be clones at the same difference value than big functions which may provide a better refactoring opportunity for the user.

  Supported languages:
   * OpenMP
   * OpenCL
   * C++
   * Objective-C
   * C
   * CUDA
   * Objective-C++

  Used in:
   * default

  No needed settings.

  Optional Settings:
   * counting_conditions: A comma seperated list of counting conditions. Possible values are: used, returned, is_condition, in_condition, in_second_level_condition, in_third_level_condition, is_assignee, is_assigner, loop_content, second_level_loop_content, third_level_loop_content, is_param, in_sum, in_product, in_binary_operation, member_accessed. Weightings can be assigned to each condition due to providing a dict value, i.e. having used weighted in half as much as other conditions would simply be: "used: 0.5, is_assignee". Weightings default to 1 if unset. (Optional, defaults to 'OrderedDict([(<function used at 0x7f7b48ecfea0>, 0.0), (<function returned at 0x7f7b48ecff28>, 1.4), (<function is_condition at 0x7f7b48ed70d0>, 0.0), (<function in_condition at 0x7f7b48ed7158>, 1.4), (<function in_second_level_condition at 0x7f7b48ed71e0>, 1.4), (<function in_third_level_condition at 0x7f7b48ed7268>, 1.0), (<function is_assignee at 0x7f7b48ed72f0>, 0.0), (<function is_assigner at 0x7f7b48ed7378>, 0.6), (<function loop_content at 0x7f7b48ed7488>, 0.0), (<function second_level_loop_content at 0x7f7b48ed7510>, 1), (<function third_level_loop_content at 0x7f7b48ed7598>, 1), (<function is_param at 0x7f7b48ed7620>, 2.0), (<function is_called at 0x7f7b48ed76a8>, 1.4), (<function is_call_param at 0x7f7b48ed7730>, 0.0), (<function in_sum at 0x7f7b48ecfc80>, 2.0), (<function in_product at 0x7f7b48ecfd08>, 0.0), (<function in_binary_operation at 0x7f7b48ecfd90>, 1), (<function member_accessed at 0x7f7b48ecfe18>, 1)])'.)
   * average_calculation: If set to true the difference calculation function will take the average of all variable differences as the difference, else it will normalize the function as a whole and thus weighting in variables dependent on their size. (Optional, defaults to 'False'.)
   * poly_postprocessing: If set to true, the difference value of big function pairs will be reduced using a polynomial approach. (Optional, defaults to 'True'.)
   * exp_postprocessing: If set to true, the difference value of big function pairs will be reduced using an exponential approach. (Optional, defaults to 'False'.)
   * extra_include_paths: A list containing additional include paths. (Optional, defaults to '()'.)

@vibhanshuvaibhav
Copy link

I would like to work on this.

@adtac
Copy link
Member Author

adtac commented Jan 18, 2018

I can't assign you until you're in the org. If you haven't already, go on gitter and say "Hello world". Someone will invite you. Once you accept the invite, ask again and I'll assign you.

@vibhanshuvaibhav
Copy link

I've done that already.

vibhanshuvaibhav added a commit to vibhanshuvaibhav/coala-bears that referenced this issue Jan 25, 2018
…ttings

Removes function addresses in optional
settings of the bear's description.

Fixes coala#559
vibhanshuvaibhav added a commit to vibhanshuvaibhav/coala-bears that referenced this issue Jan 25, 2018
Removes function addresses under optional
settings in the bear's description.

Fixes coala#559
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment