Commit 0edf62e5 authored by hjk's avatar hjk
Browse files

Clang: Simplify some condition



Change-Id: I4d68734b2d30d7922359020ea2c64d764d6efb7a
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
parent da247aac
......@@ -333,9 +333,9 @@ void CompletionProposalsBuilder::resetWithResult(const CXCompletionResult &cxRes
void CompletionProposalsBuilder::finalize()
{
// Fixes code completion: operator and destructor cases
if ((m_contexts & CXCompletionContext_DotMemberAccess)
|| (m_contexts & CXCompletionContext_ArrowMemberAccess)
|| (m_contexts & CXCompletionContext_AnyValue)) {
if (m_contexts & (CXCompletionContext_DotMemberAccess
| CXCompletionContext_ArrowMemberAccess
| CXCompletionContext_AnyValue)) {
if (m_resultKind == CodeCompletionResult::DestructorCompletionKind)
m_priority *= PriorityFix_ExplicitDestructorCall;
else if (m_resultKind == CodeCompletionResult::FunctionCompletionKind
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment