Andersbakken / rtags

A client/server indexer for c/c++/objc[++] with integration for Emacs based on clang.
http://www.rtags.net
GNU General Public License v3.0
1.83k stars 253 forks source link

std=c++17 treated as pre-C++11 for diagnostics #1167

Closed dzhu closed 6 years ago

dzhu commented 6 years ago

Please mark appropriate

Problem description

When a file has -std=c++17 in its compilation arguments, diagnostics appear in the file as if it is being treated as pre-C++11.

Expected behavior/reproduction steps

Actual behavior

Environment

stellarstriker commented 6 years ago

+1

OS: Fedora 26 rtags: tag v2.18 Clang: 4.0.1

Andersbakken commented 6 years ago

This seems to just work for me. I am running clang 6.0 however. Is it possible that your libclang doesn't support c++17?

Can you try to compile the example with the clang executable that goes with the libclang rtags is using?

dzhu commented 6 years ago

Oops, rtags was compiled with libclang 3.8. Recompiling with 5.0 fixes it. Thanks!

Andersbakken commented 6 years ago

Glad to hear.

Anders

On Tue, Mar 27, 2018 at 4:35 AM, dzhu notifications@github.com wrote:

Closed #1167 https://github.com/Andersbakken/rtags/issues/1167.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Andersbakken/rtags/issues/1167#event-1542995224, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEdSoHT3N8zdegzhTDa6R5omk1zX112ks5tiiP4gaJpZM4Sykdv .